Skip to content

Commit abe69fa

Browse files
committed
Remove regexp g flag to not save state between calls
1 parent d0f4601 commit abe69fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update-issues.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const dryRun = process.argv.includes("--dry-run");
99
// A special comment in the issue body is used to store the web-features
1010
// ID, <!-- web-features:some-feature -->. Whitespace is allowed wherever
1111
// possible to make the matching less brittle to changes.
12-
const pattern = /<!--\s*web-features\s*:\s*([a-z0-9-]+)\s*-->/g;
12+
const pattern = /<!--\s*web-features\s*:\s*([a-z0-9-]+)\s*-->/;
1313

1414
// A mapping of Mozilla and WebKit standards positions for features are
1515
// maintained for the web-features explorer. Use that data to skip features that

0 commit comments

Comments
 (0)