php-linkify icon indicating copy to clipboard operation
php-linkify copied to clipboard

typo and case sensible

Open ncou opened this issue 7 years ago • 0 comments

Hi,

Very nice lib, i looked at the code and it seems to me there is :

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

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

ncou avatar Nov 26 '17 10:11 ncou