linkedin / URL-Detector

A Java library to detect and normalize URLs in text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

False alarm detecting URLs

LeoSarabi opened this issue · comments

commented

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]

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...