aboutsummaryrefslogtreecommitdiff
path: root/deno/tools/geosite.ts
diff options
context:
space:
mode:
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);