]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 717217: The regexp in Bugzilla::BugUrl::JIRA::should_handle() isn't
authorSimon Green <sgreen+mozilla@redhat.com>
Wed, 25 Jan 2012 20:14:08 +0000 (18:14 -0200)
committerTiago Mello <timello@gmail.com>
Wed, 25 Jan 2012 20:14:08 +0000 (18:14 -0200)
restrictive enough (min two letters required)
r=timello, a=LpSolit

Bugzilla/BugUrl/JIRA.pm

index 97014e8a2a5eee42c43334a6377510b6bad354db..d0adcfed812a5f92a41bbe53296eb3e96393a465 100644 (file)
@@ -31,7 +31,7 @@ use Bugzilla::Util;
 
 sub should_handle {
     my ($class, $uri) = @_;
-    return ($uri->path =~ m|/browse/[A-Z]+-\d+$|) ? 1 : 0;
+    return ($uri->path =~ m|/browse/[A-Z][A-Z]+-\d+$|) ? 1 : 0;
 }
 
 sub _check_value {