Closes #1072: In the JS search, fix issues searching for upper-cased words by lowercasing words before stemming.

This commit is contained in:
Georg Brandl 2014-01-12 21:29:35 +01:00
parent 637e26ad0a
commit b1936aa1f3
2 changed files with 4 additions and 1 deletions

View File

@ -82,6 +82,9 @@ Bugs fixed
* #1345: Fix two bugs with :confval:`nitpick_ignore`; now you don't have to
remove the store environment for changes to have effect.
* #1072: In the JS search, fix issues searching for upper-cased words by
lowercasing words before stemming.
Documentation
-------------

View File

@ -156,7 +156,7 @@ var Search = {
continue;
}
// stem the word
var word = stemmer.stemWord(tmp[i]).toLowerCase();
var word = stemmer.stemWord(tmp[i].toLowerCase());
var toAppend;
// select the correct list
if (word[0] == '-') {