]> 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:11:04 +0000 (18:11 -0200)
committerTiago Mello <timello@gmail.com>
Wed, 25 Jan 2012 20:11:04 +0000 (18:11 -0200)
restrictive enough (min two letters required)
r=timello, a=LpSolit

Bugzilla/BugUrl/JIRA.pm

index 8ac10ea120ba3fad78314564ab0a523b0c272137..8a7b90c3e911580443078cb3fbc4e44a36e794fe 100644 (file)
@@ -18,7 +18,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 {