https://bugzilla.wikimedia.org/show_bug.cgi?id=34179
--- Comment #5 from Brad Jorsch <[email protected]> 2012-02-05 20:18:46 UTC --- (In reply to comment #3) > $regexStart = '/(?:https?:)\/\/+[a-z0-9_\-.]*('; > > would fix it, by not making the whole protocol bit optional That re-opens bug 33985. What probably needs to be done is something like $regexStart = '/^(?:https?:)?\/\/+[a-z0-9_\-.]*('; so (in combination with the 'm' flag already included in $regexEnd) it only matches at the start of each line, but I don't have time right now to verify that works. At a glance it looks like it'll break detecting links in edit summaries, unless the link is at the start of the edit summary. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
