diff options
-rw-r--r-- | quicksearch.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quicksearch.js b/quicksearch.js index 7fa9a02f5..7e4b85139 100644 --- a/quicksearch.js +++ b/quicksearch.js @@ -453,12 +453,12 @@ function make_query_URL(url, input, searchLong) { w = word[i]; negation = false; - if (w[0] == "-") { + if (w.charAt(0) == "-") { negation = true; w = w.substring(1); } - switch (w[0]) { + switch (w.charAt(0)) { case "+": alternative = w.substring(1).split(/[|,]/); for (j=0; j<alternative.length; j++) |