[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.8-19-geca6f8f

Alex Vandiver alexmv at bestpractical.com
Thu Oct 16 10:56:22 EDT 2014


The branch, 4.2-trunk has been updated
       via  eca6f8fae5d9473f89194c2aa3b30c24f8e1eaaf (commit)
      from  8ff253dd60c2c13ffd39342092dba69a4eb65efb (commit)

Summary of changes:
 devel/tools/rt-static-docs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit eca6f8fae5d9473f89194c2aa3b30c24f8e1eaaf
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Oct 16 10:31:59 2014 -0400

    Allow : in detected links
    
    This allows for pod to contain:
    
      ..find it at http://metacpan.org/modules/RT::Authen::ExternalAuth
    
    Otherwise, rt-static-docs only links up to the first colon.

diff --git a/devel/tools/rt-static-docs b/devel/tools/rt-static-docs
index 35d2dc9..ef3dc50 100755
--- a/devel/tools/rt-static-docs
+++ b/devel/tools/rt-static-docs
@@ -157,7 +157,7 @@ for my $file (<README* UPGRADING*>) {
     $str =~ s{\bdocs/([a-z_-]+)\.pod\b}{<a href="$1.html">docs/$1.pod</a>}ig;
     $str =~ s{\betc/(RT_Config)\.pm\b}{<a href="$1.html">etc/$1.pm</a>}g;
     $str =~ s{\betc/(UPRGADING\.mysql)\b}{<a href="$1.html">etc/$1</a>}g;
-    $str =~ s{\b(https?://(?!rt\.example\.com)[.a-z0-9/_-]+(?<!\.))}{<a href="$1">$1</a>}ig;
+    $str =~ s{\b(https?://(?!rt\.example\.com)[.a-z0-9/_:-]+(?<!\.))}{<a href="$1">$1</a>}ig;
     $str =~ s{\b([\w-]+\@(lists\.)?bestpractical.com)\b}{<a href="mailto:$1">$1</a>}g;
 
     open my $html, ">", $dest

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


More information about the rt-commit mailing list