Improve parsing (ready for reject ip and reject wildcard)
Some checks failed
Build / Build (push) Has been cancelled
Build / Diff output (push) Has been cancelled
Build / Deploy to Cloudflare Pages (3.114.9) (push) Has been cancelled
Build / Deploy to GitHub and GitLab (push) Has been cancelled

This commit is contained in:
SukkaW
2025-06-20 15:26:14 +08:00
parent 2ba50bf850
commit 172e4efd8a
2 changed files with 76 additions and 24 deletions

View File

@@ -3,9 +3,9 @@ import type * as tldts from 'tldts';
export const looseTldtsOpt: NonNullable<Parameters<typeof tldts.getSubdomain>[1]> = {
allowPrivateDomains: false,
extractHostname: false,
mixedInputs: false,
validateHostname: false,
detectIp: false,
mixedInputs: false
detectIp: false
};
export const loosTldOptWithPrivateDomains: NonNullable<Parameters<typeof tldts.getSubdomain>[1]> = {