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:
Rodney, Tiara 2025-05-01 19:25:37 +02:00
parent 74465875cb
commit 0d2f45fe31
Signed by: tiara
GPG key ID: 5CD8EC1D46106723
3 changed files with 21 additions and 1 deletions

View file

@ -15,6 +15,7 @@
"lib": ["esnext.weakref", "dom"]
},
"include": [
"src/**/*.ts"
"src/**/*.ts",
"src/types/**/*.d.ts"
]
}