feat: add polyfill for RegExp.escape
the method is currently in ECMAScript standard draft 4 and not yet adopted broadly enough. V8 has basic support, but I'm not betting on it coming soon, so I've implemented a simple polyfill.
This commit is contained in:
parent
74465875cb
commit
0d2f45fe31
3 changed files with 21 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
"lib": ["esnext.weakref", "dom"]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
"src/**/*.ts",
|
||||
"src/types/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue