diff options
| author | Yuqian Yang <crupest@crupest.life> | 2026-03-17 22:16:14 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2026-03-17 22:16:14 +0800 |
| commit | 8dabb7870ebc4bec146ebf7ec2f948cd2e1b228a (patch) | |
| tree | b594249523e2481a44dbe0ccab2768267db6bc7d /deno/tools/geosite.ts | |
| parent | 5384ac901842cc484e981724ed2c44cceaf7a02d (diff) | |
| download | crupest-8dabb7870ebc4bec146ebf7ec2f948cd2e1b228a.tar.gz crupest-8dabb7870ebc4bec146ebf7ec2f948cd2e1b228a.tar.bz2 crupest-8dabb7870ebc4bec146ebf7ec2f948cd2e1b228a.zip | |
Diffstat (limited to 'deno/tools/geosite.ts')
| -rw-r--r-- | deno/tools/geosite.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deno/tools/geosite.ts b/deno/tools/geosite.ts index 3aabec2..5e66960 100644 --- a/deno/tools/geosite.ts +++ b/deno/tools/geosite.ts @@ -12,6 +12,7 @@ const SITES = [ "reddit", "twitch", "quora", + "medium", "telegram", "imgur", "stackexchange", @@ -20,6 +21,7 @@ const SITES = [ "wikimedia", "gitbook", "gitlab", + "anthropic", "creativecommons", "archive", "matrix", @@ -153,8 +155,8 @@ if (import.meta.main) { const [has, notHas] = toNewFormat(rules, ATTR); const resultDir = tmpDir + "/result"; Deno.mkdirSync(resultDir); - const hasFile = resultDir + "/has-rule"; - const notHasFile = resultDir + "/not-has-rule"; + const hasFile = resultDir + "/has-rule.txt"; + const notHasFile = resultDir + "/not-has-rule.txt"; console.log("Write result to: " + hasFile + " , " + notHasFile); Deno.writeTextFileSync(hasFile, has); Deno.writeTextFileSync(notHasFile, notHas); |
