Initial commit
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
const escapeRegexRegex = new RegExp("(\\" + ["/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^"].join("|\\") + ")", "gim");
|
||||
export default function (str) {
|
||||
return str.replace(escapeRegexRegex, "\\$1");
|
||||
}
|
||||
Reference in New Issue
Block a user