fix(core): update
This commit is contained in:
+9
-1
@@ -21,5 +21,13 @@ export class SmartWhois {
|
||||
};
|
||||
}
|
||||
|
||||
public async isValidTld(tldArg: string): Promise<boolean> {
|
||||
const allTlds = await plugins.whoiser.allTlds();
|
||||
const sanatizedTld = tldArg.startsWith('.')
|
||||
? tldArg.replace('.', '').toUpperCase()
|
||||
: tldArg.toUpperCase();
|
||||
return allTlds.includes(sanatizedTld);
|
||||
}
|
||||
|
||||
public async getWhoisForIp(ipArg: string) {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user