php-linkify
php-linkify copied to clipboard
typo and case sensible
Hi,
Very nice lib, i looked at the code and it seems to me there is :
- a typo error in a comment for the regex explanation line 154 :
[^\s()<>]+ # Run of non-space, non-()<>
the "-" character is no more in the regex, so it should be removed from the comment.
- line 167 there is a check to verify if there is a need to add an "http" value in the link. I think you should add an "~i" value to avoid the case sensitive problem. For example if someone add a text "hTTp://www.xxx.xxx" the http will be added because your regex is case sensitive.
Keepup the good work.