linkedin / URL-Detector

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

While detecting Username and password in url we were not breaking the… #31

Closed KanishkRastogi-lnkd closed 4 years ago

KanishkRastogi-lnkd commented 4 years ago

… iteration if we find the :

This means that if there was a long substring of : then we will iterate till the end of the : string and then restart the same iteration for the next :. This fix breaks the usename and password detection when it encounters the next : thus breaking the look early and backtracking less.