linkedin / URL-Detector

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

Added support for dots in the local part of an e-mail address. #20

Closed capnbab closed 7 years ago

capnbab commented 7 years ago

This commit addresses issue #13

Previously, if URL-Detector encountered something like... first.last@domain.com

...it would detect two separate URLs: http://first.last http://domain.com

I believe the desired behavior is for one URL to be detected, with getHost() returning "domain.com" and getUsername() returning "first.last"