Bug in detection urls
Urkman opened this issue · 4 comments
Urkman commented
There is currently a bug in detection urls.
A text like "test..." is detected as a url.
Urkman commented
Urkman commented
Perhaps use this RegEx:
r'(?:(?:https?|ftp):\/\/)?[-a-z0-9@:%._\+~#=]{1,256}\.[a-z0-9]{1,6}(\/[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)?'
fweinaug commented
thank you for creating the issue! I just released version 2.3 which should fix this problem by using your regex.