mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Use a (hopefully) more efficient regex for matching jquery in the safelist (#42653)
This commit is contained in:
@@ -207,7 +207,7 @@ namespace ts.server {
|
||||
const defaultTypeSafeList: SafeList = {
|
||||
"jquery": {
|
||||
// jquery files can have names like "jquery-1.10.2.min.js" (or "jquery.intellisense.js")
|
||||
match: /jquery(-(\.?\d+)+)?(\.intellisense)?(\.min)?\.js$/i,
|
||||
match: /jquery(-[\d\.]+)?(\.intellisense)?(\.min)?\.js$/i,
|
||||
types: ["jquery"]
|
||||
},
|
||||
"WinJS": {
|
||||
|
||||
Reference in New Issue
Block a user