[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.9.4-469-g4dff86b

Shawn Moore sartak at bestpractical.com
Tue Nov 16 16:57:34 EST 2010


The branch, 3.9-trunk has been updated
       via  4dff86b2c4dfdc6ff3d05adf04f70029335811cc (commit)
      from  dde5530269be861a66e26b316d649ff447e84fbe (commit)

Summary of changes:
 sbin/rt-message-catalog |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 4dff86b2c4dfdc6ff3d05adf04f70029335811cc
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Nov 16 16:57:36 2010 -0500

    Fix and prettify a broken regex

diff --git a/sbin/rt-message-catalog b/sbin/rt-message-catalog
index 62513bf..a7e02dd 100755
--- a/sbin/rt-message-catalog
+++ b/sbin/rt-message-catalog
@@ -186,7 +186,7 @@ sub rosetta {
     my $url = shift or die 'must provide Rosetta download url or directory with new po files';
 
     my $dir;
-    if ( $url =~ m/^[a-z+]:\/\// ) {
+    if ( $url =~ m{^[a-z]+://} ) {
         $dir = File::Temp::tempdir();
         my ($fname) = $url =~ m{([^/]+)$};
 

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


More information about the Rt-commit mailing list