@@ -14,6 +14,6 @@ export const loosTldOptWithPrivateDomains: Parameters<typeof tldts.getSubdomain>
};
export const normalizeTldtsOpt: Parameters<typeof tldts.getSubdomain>[1] = {
- allowPrivateDomains: true
- // detectIp: true
+ allowPrivateDomains: true,
+ detectIp: true
@@ -575,7 +575,8 @@ export function parse($line: string, result: [string, ParseType], allowThirdPart
}
const domain = normalizeDomain(sliced);
- if (domain) {
+
+ if (domain && domain === sliced) {
result[0] = domain;
if (white) {