Skip to content

Commit fc988a1

Browse files
committed
Pass correct regex flag
1 parent 47cf7ca commit fc988a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/editorServices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ namespace ts.server {
14421442
const raw: SafeList = JSON.parse(this.host.readFile(fileName, "utf-8"));
14431443
// Parse the regexps
14441444
for (const k of Object.keys(raw)) {
1445-
raw[k].match = new RegExp(raw[k].match as {} as string, "gi");
1445+
raw[k].match = new RegExp(raw[k].match as {} as string, "i");
14461446
}
14471447
// raw is now fixed and ready
14481448
ProjectService.safelist = raw;

0 commit comments

Comments
 (0)