linkedin / URL-Detector

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

False alarm detecting URLs #36

Open LeoSarabi opened 1 year ago

LeoSarabi commented 1 year ago

if i have a text contains 10.00hr, it is consider as a URL

runTest("10.00hr,", UrlDetectorOptions.Default); it should return empty, but the results is [http://10.00hr]

yl-ang commented 1 year ago

Valid but readme stated that it is better to over detect URL for security reasons.

Note: Keep in mind that for security purposes, its better to overdetect urls and check more against blacklists than to not detect a url that was submitted...