[dev] Re: [cvs] commit: horde/lib/Text/Filter linkurls.php

Chuck Hagenbuch chuck at horde.org
Wed Nov 26 18:43:47 PST 2003


Quoting Marko Djukic <tech at oblo.com>:

>   Log:
>   this fixes a bunch of wrong matches that the previous code was finding. it
> shouldn't match urls in href=' or src="/', also this tries to stop the code
> from picking up any end punctuation that shouldn't be part of the url, eg.
> fullstop, question mark.
>   also, thoughts on using a-zA-Z instead of /i? shouldn't it be quicker?

Dunno how much it matters with pcre, try benchmarking it?

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"I'm really... I'm not too fascinated by green food." - Average Joe


More information about the dev mailing list