[Rt-commit] rt branch, 4.0/makeclicky-html-in-anchor, created. rt-4.0.17-76-g778713a

Alex Vandiver alexmv at bestpractical.com
Wed Aug 21 12:18:45 EDT 2013


The branch, 4.0/makeclicky-html-in-anchor has been created
        at  778713aca904be350cff389a4009f9ec702d732a (commit)

- Log -----------------------------------------------------------------
commit 778713aca904be350cff389a4009f9ec702d732a
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Aug 21 11:57:19 2013 -0400

    Don't catch trailing html tags, like <br>, in HTML anchor

diff --git a/share/html/Elements/MakeClicky b/share/html/Elements/MakeClicky
index 854c93c..3e7d465 100644
--- a/share/html/Elements/MakeClicky
+++ b/share/html/Elements/MakeClicky
@@ -76,12 +76,12 @@ my %actions = (
 my @types = (
     {
         name   => "httpurl",
-        regex  => qr/$RE{URI}{HTTP}{-keep}{-scheme => 'https?'}(?:#\S+)?(?<![.?!,;:])/,
+        regex  => qr/$RE{URI}{HTTP}{-keep}{-scheme => 'https?'}(?:#[^\s<]+)?(?<![.?!,;:])/,
         action => "url",
     },
     {
         name   => "httpurl_overwrite",
-        regex  => qr/$RE{URI}{HTTP}{-keep}{-scheme => 'https?'}(?:#\S+)?(?<![.?!,;:])/,
+        regex  => qr/$RE{URI}{HTTP}{-keep}{-scheme => 'https?'}(?:#[^\s<]+)?(?<![.?!,;:])/,
         action => "url_overwrite",
     },
 );

-----------------------------------------------------------------------


More information about the Rt-commit mailing list