mirror of
https://github.com/SukkaW/Surge.git
synced 2026-07-29 15:31:46 +08:00
Housekeeping
This commit is contained in:
@@ -59,7 +59,7 @@ const agent = new Agent({
|
||||
if (
|
||||
errorCode === 'ERR_UNESCAPED_CHARACTERS'
|
||||
|| errorCode === 'UND_ERR_DESTROYED'
|
||||
// eslint-disable-next-line sukka/prefer-foxts-error-util -- we already know this is Error type
|
||||
|
||||
|| err.message === 'Request path contains unescaped characters'
|
||||
|| err.name === 'AbortError'
|
||||
) {
|
||||
|
||||
@@ -426,7 +426,7 @@ export class FileOutput {
|
||||
const d = domainToASCII(domain);
|
||||
if (d) domainEntries.push([d, includeSubdomain]);
|
||||
});
|
||||
domainEntries.sort((a, b) => (a[0].length - b[0].length) || (a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0));
|
||||
domainEntries.sort((a, b) => (a[0].length - b[0].length) || (a[0] < b[0] ? -1 : (a[0] > b[0] ? 1 : 0)));
|
||||
for (let j = 0, entriesLen = domainEntries.length; j < entriesLen; j++) {
|
||||
const [domain, includeAllSubdomain] = domainEntries[j];
|
||||
if (kwfilter(domain)) {
|
||||
|
||||
Reference in New Issue
Block a user