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) {