Rrefactor: rewrite trie in class

This commit is contained in:
SukkaW
2024-10-02 22:01:38 +08:00
parent d1041f0e59
commit a7e7c19a51
7 changed files with 187 additions and 185 deletions

View File

@@ -191,7 +191,7 @@ async function processPhihsingDomains(domainArr: string[]) {
);
}
export function calcDomainAbuseScore(subdomain: string, fullDomain: string) {
export function calcDomainAbuseScore(subdomain: string, fullDomain: string = subdomain) {
let weight = 0;
const hitLowKeywords = lowKeywords(fullDomain);