linkedin / URL-Detector

A Java library to detect and normalize URLs in text
783 stars 186 forks source link

URL-DETECTOR fails to detect a valid URL #28

Open cohendekel opened 5 years ago

cohendekel commented 5 years ago

Executing the following code Url.create("http://013.xxx/"); is resolved with the following error:

java.net.MalformedURLException: We couldn't find any urls in string: http://013.xxx/
    at com.linkedin.urls.Url.create(Url.java:69)

It looks like as if the utility treats the xxx part as invalid ip instead of a valid suffix. Excepted result: Url should be created, host should be 013.xxx

cohendekel commented 3 years ago

if anyone interested, we fixed it and other bugs in our forked library: https://github.com/URL-Detector/URL-Detector