aboutsummaryrefslogtreecommitdiff
path: root/deno/tools/geosite.ts
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2026-03-17 22:16:14 +0800
committerYuqian Yang <crupest@crupest.life>2026-03-17 22:16:14 +0800
commit8dabb7870ebc4bec146ebf7ec2f948cd2e1b228a (patch)
treeb594249523e2481a44dbe0ccab2768267db6bc7d /deno/tools/geosite.ts
parent5384ac901842cc484e981724ed2c44cceaf7a02d (diff)
downloadcrupest-8dabb7870ebc4bec146ebf7ec2f948cd2e1b228a.tar.gz
crupest-8dabb7870ebc4bec146ebf7ec2f948cd2e1b228a.tar.bz2
crupest-8dabb7870ebc4bec146ebf7ec2f948cd2e1b228a.zip
feat: update geodata.HEADmaindev
Diffstat (limited to 'deno/tools/geosite.ts')
-rw-r--r--deno/tools/geosite.ts6
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);