mirror of
https://github.com/tiennm99/is-a-good-dev.git
synced 2026-10-13 04:15:08 +00:00
move invalid domains to seperate file
This commit is contained in:
1 parent
ca8d3f6db8
commit
83a017a614
2 files changed
+19
-19
No files matched your search
+1
-19
@@ -1,28 +1,10 @@
|
||||
const fs = require("fs");
|
||||
const invalidDomains = require("./invalid-domains.json");
|
||||
|
||||
function getFileExtension(filename) {
|
||||
return (/[.]/.exec(filename)) ? /[^.]+$/.exec(filename) : undefined;
|
||||
}
|
||||
|
||||
const invalidDomains = [
|
||||
"_acme-challenge",
|
||||
"_github-challenge-is-a-good-dev",
|
||||
"_github-pages-challenge-is-a-good-dev",
|
||||
"help",
|
||||
"no-reply",
|
||||
"noreply",
|
||||
"notification",
|
||||
"notifications",
|
||||
"support",
|
||||
"ww",
|
||||
"ww1",
|
||||
"ww2",
|
||||
"ww3",
|
||||
"ww4",
|
||||
"wwww",
|
||||
"your-domain-name"
|
||||
]
|
||||
|
||||
function getJSON(file, filename) {
|
||||
const path = `${process.env.actions_path}/${file}`; // File path.
|
||||
const ext = getFileExtension(file);
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
[
|
||||
"_acme-challenge",
|
||||
"_github-challenge-is-a-good-dev",
|
||||
"_github-pages-challenge-is-a-good-dev",
|
||||
"help",
|
||||
"no-reply",
|
||||
"noreply",
|
||||
"notification",
|
||||
"notifications",
|
||||
"support",
|
||||
"ww",
|
||||
"ww1",
|
||||
"ww2",
|
||||
"ww3",
|
||||
"ww4",
|
||||
"wwww",
|
||||
"your-domain-name"
|
||||
]
|
||||
Reference in new issue
Block a user