Commit info for scoop/lib/Scoop:
Modified Files:
Utility.pm
Log Message:
Fix for autoformat bug with <a href=""> HTML tags.
Index: Utility.pm
===================================================================
RCS file: /cvs/scoop/scoop/lib/Scoop/Utility.pm,v
retrieving revision 1.27
retrieving revision 1.28
diff -r1.27 -r1.28
868c868,872
< s#([^\x00]|^)($url_regex)(?=[.!?_*=]?[\s\n<()\[\]{}\x01\x02]|$)#$1<a href="$2">$2</a>#gmio;
---
> #s#([^\x00]|^)($url_regex)(?=[.!?_*=]?[\s\n<()\[\]{}\x01\x02]|$)#$1<a href="$2">$2</a>#gmio;
> # Added (?!>) so that it would look ahead and not linkify urls that have a > in them
> # Whether this will conflict with anything else I don't know YMMV
> s#([^\x00]|^)($url_regex)(?=[.!?_*=](?!>)?[\s\n<()\[\]{}\x01\x02]|$)#$1<a href="$2">$2</a>#gmio;
>