resetting linux lol
diff --git a/src/automations/unscan.ts b/src/automations/unscan.ts
index 940a1fe..d1fa7d4 100644
--- a/src/automations/unscan.ts
+++ b/src/automations/unscan.ts
@@ -12,9 +12,7 @@
} catch {}
detections.push({tags: element.tags || [], safe: element.safe})
});
- console.log(1)
await Promise.all(promises);
- console.log(2)
let types = [
"PHISHING", "DATING", "TRACKERS", "ADVERTISEMENTS", "FACEBOOK",
"AMP", "FACEBOOK TRACKERS", "IP GRABBERS", "PORN",
@@ -27,7 +25,6 @@
// if (!element.safe) return "UNSAFE"
return undefined
}).filter(element => element !== undefined)
- console.log(detectionsTypes)
return detectionsTypes.length > 0
}
@@ -56,22 +53,22 @@
}
}
-export function TestString(string, soft, strict): string {
+export function TestString(string, soft, strict): object | null {
for(let word of strict || []) {
if (string.toLowerCase().includes(word)) {
- return "strict"
+ return {word: word, type: "strict"}
}
}
for(let word of soft) {
for(let word2 of string.match(/[a-z]+/gi) || []) {
if (word2 == word) {
- return "loose"
+ return {word: word, type: "strict"}
}
}
}
- return "none"
+ return null
}
-export async function TestImage(element): Promise<string> {
- return "";
+export async function TestImage(element): Promise<string | null> {
+ return null;
}