Chore: update ESLint config

This commit is contained in:
SukkaW
2023-09-28 22:59:19 +08:00
parent d69def0024
commit 3d2afa608c
21 changed files with 315 additions and 315 deletions

View File

@@ -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 () => {