修复原生壳能力检查换行解析
允许能力数组导出等号后的格式化空白
This commit is contained in:
@@ -2940,7 +2940,7 @@ function extractTsStringArray(source, exportName, seen = new Set()) {
|
||||
|
||||
const match = source.match(
|
||||
new RegExp(
|
||||
`export const ${exportName}[^=]*= \\[([\\s\\S]*?)\\](?: as const)?;`,
|
||||
`export const ${exportName}[^=]*=\\s*\\[([\\s\\S]*?)\\](?: as const)?;`,
|
||||
),
|
||||
);
|
||||
if (!match) {
|
||||
|
||||
Reference in New Issue
Block a user