]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
no bug - Fix an error in regex
authorKohei Yoshino <kohei.yoshino@gmail.com>
Thu, 25 Jul 2019 16:07:22 +0000 (12:07 -0400)
committerGitHub <noreply@github.com>
Thu, 25 Jul 2019 16:07:22 +0000 (12:07 -0400)
Bugzilla/Search.pm

index 13a4ca27949f4836a7c2432d21e74ffa3fa85e5f..9f536792e6c6703ae2caea41e1f3fb58c8ab8051 100644 (file)
@@ -2947,7 +2947,7 @@ sub _component_nonchanged {
   # Allow to search product/component pairs like "Core::General" with a simple
   # operator. Since product/component names may include spaces, other operators
   # like `anywords` won't work.
-  if ($args->{operator} =~ /^(:?(:?not)?equals)$/
+  if ($args->{operator} =~ /^(?:(?:not)?equals)$/
     && $args->{value} =~ /^(?:(.+)\s*::\s*)?(.+)$/)
   {
     $product = $1;