diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-29 23:14:14 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-03-29 23:14:14 +0200 |
commit | 35f99bbebf22b711ba24d15377f2de2a73eff2c4 (patch) | |
tree | 33004e6d9448b8585ce0b799e49f64953ff5691e /Bugzilla/Search | |
parent | 8f04aae656cf6218ef3028ab615989c0269af66c (diff) | |
download | bugzilla-35f99bbebf22b711ba24d15377f2de2a73eff2c4.tar.gz bugzilla-35f99bbebf22b711ba24d15377f2de2a73eff2c4.tar.xz |
Bug 554986: Add a "notmatches" search type, which allows the minus sign
operator to start working for bare words in Quicksearch again
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Search')
-rw-r--r-- | Bugzilla/Search/Quicksearch.pm | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm index c71fab85b..7839c4fd5 100644 --- a/Bugzilla/Search/Quicksearch.pm +++ b/Bugzilla/Search/Quicksearch.pm @@ -524,19 +524,10 @@ sub matchPrefixes { sub negateComparisonType { my $comparisonType = shift; - if ($comparisonType eq 'substring') { - return 'notsubstring'; - } - elsif ($comparisonType eq 'anywords') { + if ($comparisonType eq 'anywords') { return 'nowords'; } - elsif ($comparisonType eq 'regexp') { - return 'notregexp'; - } - else { - # Don't know how to negate that - ThrowCodeError('unknown_comparison_type'); - } + return "not$comparisonType"; } # Add a boolean chart |