Chore: minor changes

This commit is contained in:
SukkaW
2025-01-21 14:05:25 +08:00
parent b378a4e87c
commit b0124e22f7
7 changed files with 25 additions and 5 deletions

View File

@@ -450,6 +450,7 @@ export const PREDEFINED_WHITELIST = [
'.lon.llnw.net', // There is no point in adding these, many subdomains are dead anyway
'.lcy.llnw.net', // There is no point in adding these, many subdomains are dead anyway
'repo.huaweicloud.com', // urlhaus
'.hubspotlinks.com', // Peter Lowe Hosts
// Expired domains
'.expobarrio.com',

View File

@@ -0,0 +1,12 @@
import { fetchRemoteTextByLine } from './fetch-text-by-line';
import { processLine } from './process-line';
import { bench, run } from 'mitata';
(async () => {
const data = await Array.fromAsync(await fetchRemoteTextByLine('https://filters.adtidy.org/extension/ublock/filters/3_optimized.txt', false));
bench('processLine', () => data.forEach(processLine));
run();
})();

View File

@@ -1,7 +1,7 @@
import { describe, it } from 'mocha';
import { processLine } from './process-line';
import expect from 'expect';
import { expect } from 'expect';
describe('processLine', () => {
([