mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Feat: url redirect module
This commit is contained in:
@@ -10,12 +10,7 @@ const { compareAndWriteFile } = require('./lib/create-file');
|
||||
const { getGorhillPublicSuffixPromise } = require('./lib/get-gorhill-publicsuffix');
|
||||
const { createCachedGorhillGetDomain } = require('./lib/cached-tld-parse');
|
||||
|
||||
/**
|
||||
* @param {string} string
|
||||
*/
|
||||
const escapeRegExp = (string) => {
|
||||
return string.replaceAll(/[$()*+.?[\\\]^{|}]/g, '\\$&');
|
||||
};
|
||||
const escapeRegExp = (string = '') => string.replaceAll(/[$()*+.?[\\\]^{|}]/g, '\\$&');
|
||||
|
||||
const buildInternalCDNDomains = task(__filename, async () => {
|
||||
const set = new Set();
|
||||
|
||||
Reference in New Issue
Block a user