From 80f34d062d4578678359171682851e55c5f00fc2 Mon Sep 17 00:00:00 2001 From: kdletters Date: Tue, 1 Sep 2026 17:28:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8E=9F=E7=94=9F=E5=A3=B3?= =?UTF-8?q?=E8=83=BD=E5=8A=9B=E6=A3=80=E6=9F=A5=E6=8D=A2=E8=A1=8C=E8=A7=A3?= =?UTF-8?q?=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 允许能力数组导出等号后的格式化空白 --- scripts/check-native-shells.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-native-shells.mjs b/scripts/check-native-shells.mjs index e17787b4e..f6f30f3c6 100644 --- a/scripts/check-native-shells.mjs +++ b/scripts/check-native-shells.mjs @@ -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) {