Thanks for the suggestion Olivier, I implemented that.
BTW, we should take a look to the function looksLikeAUrl(). It checks if tld.length is < 5 (.match(/\.[a-zA-Z]{2,4}$/))
Now TLD could be very long[0], so we should remove that restriction (also if they aren't used so much at the moment, the only one I know is com.google)
Thanks for the suggestion Olivier, I implemented that.
BTW, we should take a look to the function looksLikeAUrl(). It checks if tld.length is < 5 (.match( /\.[a-zA- Z]{2,4} $/))
Now TLD could be very long[0], so we should remove that restriction (also if they aren't used so much at the moment, the only one I know is com.google)
[0]: https:/ /en.wikipedia. org/wiki/ List_of_ Internet_ top-level_ domains# ICANN-era_ generic_ top-level_ domains