mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-02 03:51:53 +08:00
Chore: update ESLint config
This commit is contained in:
@@ -14,7 +14,7 @@ const { createCachedGorhillGetDomain } = require('./lib/cached-tld-parse');
|
||||
* @param {string} string
|
||||
*/
|
||||
const escapeRegExp = (string) => {
|
||||
return string.replace(/[\\^$.*+?()[\]{}|]/g, '\\$&');
|
||||
return string.replaceAll(/[$()*+.?[\\\]^{|}]/g, '\\$&');
|
||||
};
|
||||
|
||||
const buildInternalCDNDomains = task(__filename, async () => {
|
||||
|
||||
Reference in New Issue
Block a user