Hypercontext / linkifyjs

JavaScript plugin for finding links in plain-text and converting them to HTML <a> tags.
https://linkify.js.org
MIT License
1.83k stars 182 forks source link

linkify.test('1.android') return true? #449

Closed kyle-w-20230331 closed 1 year ago

kyle-w-20230331 commented 1 year ago

why linkify.test('1.android') return true? is it a link?

kyle-w-20230331 commented 1 year ago

the reason is 'android' be tread as a TLD, https://data.iana.org/TLD/tlds-alpha-by-domain.txt

nfrasser commented 1 year ago

Yes, that's a valid URL