排版、拼写问题等

This commit is contained in:
ACGNnsj
2023-01-30 20:23:59 +08:00
parent b1465d4550
commit 51a4c6120d
5 changed files with 22 additions and 22 deletions

2
bin/utils/url.ts vendored
View File

@@ -20,7 +20,7 @@ export function getDomain(inputUrl: string) {
i === 0 || // 'asia.com' (last remaining must be the SLD)
i < ln - 2 || // TLDs only span 2 levels
part.length < minLength || // 'www.cn.com' (valid TLD as second-level domain)
tlds.indexOf(part) < 0 // officialy not a TLD
tlds.indexOf(part) < 0 // officially not a TLD
) {
return part;
}