From 3f8f3572c0afb03057986ec2704571524318af52 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 11 Feb 2010 00:05:44 +0100 Subject: [PATCH] Girocco::Util::valid_repo_url() allow ':' after protocol:// It's needed for the "bzr://lp:foo"-style urls. --- Girocco/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Girocco/Util.pm b/Girocco/Util.pm index 3f0b803..e2f7854 100644 --- a/Girocco/Util.pm +++ b/Girocco/Util.pm @@ -111,7 +111,7 @@ sub valid_web_url { } sub valid_repo_url { $_ = $_[0]; - /^(http|git|svn|darcs|bzr):\/\/[a-zA-Z0-9-.]+(\/[_\%a-zA-Z0-9.\/~-]*)?$/; + /^(http|git|svn|darcs|bzr):\/\/[a-zA-Z0-9-.:]+(\/[_\%a-zA-Z0-9.\/~-]*)?$/; } -- 2.11.4.GIT