Replace more utilities w/ foxts

This commit is contained in:
SukkaW
2024-12-12 23:19:03 +08:00
parent 80ac403944
commit 72d953b230
21 changed files with 30 additions and 384 deletions

View File

@@ -7,7 +7,7 @@ import { readFileByLine } from './lib/fetch-text-by-line';
import path from 'node:path';
import { OUTPUT_SURGE_DIR } from './constants/dir';
import { $fetch } from './lib/make-fetch-happen';
import createKeywordFilter from './lib/aho-corasick';
import { createAhoCorasick as createKeywordFilter } from 'foxts/ahocorasick';
export async function parseGfwList() {
const whiteSet = new Set<string>();