Skip to content

Commit

Permalink
Update upstream public suffix list (#2245)
Browse files Browse the repository at this point in the history
* Update upstream public suffix list

* Fix tests

---------

Co-authored-by: remusao <1299873+remusao@users.noreply.github.com>
  • Loading branch information
remusao and remusao authored Jan 15, 2025
1 parent 2521e32 commit 21d774d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/tldts-experimental/src/data/hashes.ts

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions packages/tldts-icann/src/data/trie.ts

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions packages/tldts-tests/src/tldts-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -954,12 +954,12 @@ export default function test(
if (
!rule.isException &&
rule.isWildcard &&
(rule.isIcann || includePrivate)
(rule.isIcann || includePrivate) &&
rule.rule !== '*.wc.psl.hrsn.dev'
) {
let domain = rule.rule;
it(domain, () => {
expect(domain.startsWith('*.')).to.be.true;
domain = domain.slice(2);
it(rule.rule, () => {
expect(rule.rule.startsWith('*.')).to.be.true;
const domain = rule.rule.slice(2);
const url = `https://www.sub.${domain}/`;
const result = tldts.parse(url, {
allowPrivateDomains: includePrivate,
Expand Down
8 changes: 4 additions & 4 deletions packages/tldts/src/data/trie.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion publicsuffix

0 comments on commit 21d774d

Please sign in to comment.