fix: rollback regexp eslint changes

This commit is contained in:
Martin Guillon
2020-11-12 20:21:39 +01:00
parent 64e0aa6a11
commit ca56a30d56
4 changed files with 10 additions and 9 deletions

View File

@ -11,7 +11,7 @@ export const RESOURCE_PREFIX = 'res://';
export const FILE_PREFIX = 'file:///';
export function escapeRegexSymbols(source: string): string {
const escapeRegex = /[-[]\/{}()*+?.\\^$|]/g;
const escapeRegex = /[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;
return source.replace(escapeRegex, '\\$&');
}