Pass correct regex flag

This commit is contained in:
Ryan Cavanaugh
2017-04-07 16:58:13 -07:00
parent b4c47f4b31
commit caace6ec2a
+1 -1
View File
@@ -1442,7 +1442,7 @@ namespace ts.server {
const raw: SafeList = JSON.parse(this.host.readFile(fileName, "utf-8"));
// Parse the regexps
for (const k of Object.keys(raw)) {
raw[k].match = new RegExp(raw[k].match as {} as string, "gi");
raw[k].match = new RegExp(raw[k].match as {} as string, "i");
}
// raw is now fixed and ready
ProjectService.safelist = raw;