summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2016-05-12 23:06:25 +0200
committerDylan Hardison <dylan@mozilla.com>2016-05-12 23:06:45 +0200
commit627be9de2e720f289f0b151c0057be7af0e84a72 (patch)
tree118e76d46e837a1eb016cb259f3205f40da5bc7e /Bugzilla
parent44a2e60b4f7030a06471a03699e2a167875f250e (diff)
downloadbugzilla-627be9de2e720f289f0b151c0057be7af0e84a72.tar.gz
bugzilla-627be9de2e720f289f0b151c0057be7af0e84a72.tar.xz
Bug 1270867 - confusing error message when I was just searching for a bug
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search/Quicksearch.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index c65fe06a8..d398910dd 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -306,6 +306,7 @@ sub _parse_line {
# only treat ' at the start or end of words as quotes
# it's easier to do this in reverse with regexes
+ $line =~ s/(\w+[:=<>!])(\s+)/'$1'$2/g;
$line =~ s/(^|\s|:)'/$1\001/g;
$line =~ s/'($|\s)/\001$1/g;
$line =~ s/\\?'/\000/g;