Skip to content

Commit 47fcf4a

Browse files
committed
address regex inaccuracy
1 parent 6489916 commit 47fcf4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/scripts/check-subblock-id-stability.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function getPreviousIds(): IdMap {
114114
continue
115115
}
116116

117-
const typeMatch = content.match(/type:\s*['"]([^'"]+)['"]/)
117+
const typeMatch = content.match(/BlockConfig\s*=\s*\{[\s\S]*?type:\s*['"]([^'"]+)['"]/)
118118
if (!typeMatch) continue
119119
const blockType = typeMatch[1]
120120

0 commit comments

Comments
 (0)