thom4parisot / tld.js

JavaScript API to work easily with complex domain names, subdomains and well-known TLDs.
https://npmjs.com/tldjs
MIT License
460 stars 55 forks source link

The .sport TLD is not existing according to tdlExists func #142

Closed giannifiore closed 4 years ago

giannifiore commented 4 years ago

Domain names which make use of the .sport TLD are not marked as valid by the tldExists function.

http://nic.sport/

How to reproduce

Via node console:

> let tld = require("tldjs")
> tld.tldExists("abc.sport")
false
remusao commented 4 years ago

Hi @fioreggianni,

Looks like the version of the lists shipped with tld.js is not updated automatically. You can force it with:

npm install --save tldjs --tldjs-update-rules

After running this command it seems like the issue is resolved.

giannifiore commented 4 years ago

Thank you very much, adding that to our postinstall hooks in CI/CD