Skip to content

Commit 857b762

Browse files
committed
Fixes
1 parent c164730 commit 857b762

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/server/editorServices.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,24 +64,20 @@ namespace ts.server {
6464
const defaultTypeSafeList: SafeList = {
6565
"jquery": {
6666
// jquery files can have names like "jquery-1.10.2.min.js" (or "jquery.intellisense.js")
67-
"match": /jquery(-(\.?\d+)+)?(\.intellisense)?(\.min)?\.js$/gi,
67+
"match": /jquery(-(\.?\d+)+)?(\.intellisense)?(\.min)?\.js$/i,
6868
"types": ["jquery"]
6969
},
7070
"WinJS": {
71-
"match": /^(.*\/winjs)\/base\.js$/gi, // If the winjs/base.js file is found..
71+
"match": /^(.*\/winjs)\/base\.js$/i, // If the winjs/base.js file is found..
7272
"exclude": [["^", 1, "/.*"]], // ..then exclude all files under the winjs folder
7373
"types": ["winjs"] // And fetch the @types package for WinJS
7474
},
7575
"Kendo": {
76-
"match": /^(.*\/kendo\/.+\.js$/gi,
76+
"match": /^(.*\/kendo\/.+\.js$/i,
7777
"exclude": [["^", 1, "/.*"]]
7878
},
79-
"Office Loc Files": {
80-
"match": /^(.*\/office\/1\/\w\w-\w\w\/).+\.js$/gi, // Office NuGet package is installed under a "office/1" folder
81-
"exclude": [["^", 1, "/.*"]] // Exclude that whole folder if the file indicated above is found in it
82-
},
83-
"Office Nuget": { // TODO this one
84-
"match": /^(.*\/1\/office)\/excel\.debug\.js$/gi, // Office NuGet package is installed under a "1/office" folder
79+
"Office Nuget": {
80+
"match": /^(.*\/1\/office)\/excel\.debug\.js$/i, // Office NuGet package is installed under a "1/office" folder
8581
"exclude": [["^", 1, "/.*"]], // Exclude that whole folder if the file indicated above is found in it
8682
"types": ["office"] // @types package to fetch instead
8783
}

0 commit comments

Comments
 (0)