This commit is contained in:
Norbert
2023-05-15 00:06:19 +02:00
parent a20b8ffb9e
commit 743583fe4c
2 changed files with 28 additions and 26 deletions
+3 -3
View File
@@ -11,8 +11,6 @@ if (!process.env.CI) console.log(`List item limit set to ${LIST_ITEM_LIMIT}`);
let whitelist = []; // Define an empty array for the whitelist
// Read whitelist.csv and parse
fs.readFile('whitelist.csv', 'utf8', async (err, data) => {
if (err) {
@@ -63,7 +61,9 @@ fs.readFile('input.csv', 'utf8', async (err, data) => {
.replace('0.0.0.0 ', '')
.replace('127.0.0.1 ', '')
.replace('::1 ', '')
.replace(':: ', '');
.replace(':: ', '')
.replace('^', '')
.replace('||', '');
}).filter(domain => {
return domainValidationPattern.test(domain);
});