4d307716f7
* Fix issue with escape-string-regexp in IE11 * remove escape-string-regexp dep * Update compiled * Link to original repo
4 lines
173 B
TypeScript
4 lines
173 B
TypeScript
// regexp from https://github.com/sindresorhus/escape-string-regexp
|
|
export function escapeStringRegexp(str: string) {
|
|
return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&')
|
|
}
|