Housekeeping
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy (3.114.12) (push) Has been cancelled

This commit is contained in:
SukkaW
2026-07-05 20:17:10 +08:00
parent f2db2113a5
commit fc362ff31f
5 changed files with 186 additions and 207 deletions

View File

@@ -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'
) {

View File

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