mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
fix: rollback regexp eslint changes
This commit is contained in:
@ -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, '\\$&');
|
||||
}
|
||||
|
Reference in New Issue
Block a user