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 committed 2014-01-12 21:29:35 +01:00
1 parent 637e26ad0a
commit b1936aa1f3
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -82,6 +82,9 @@ Bugs fixed
* #1345: Fix two bugs with :confval:`nitpick_ignore`; now you don't have to * #1345: Fix two bugs with :confval:`nitpick_ignore`; now you don't have to
remove the store environment for changes to have effect. 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 Documentation
------------- -------------
+1 -1
View File
@@ -156,7 +156,7 @@ var Search = {
continue; continue;
} }
// stem the word // stem the word
var word = stemmer.stemWord(tmp[i]).toLowerCase(); var word = stemmer.stemWord(tmp[i].toLowerCase());
var toAppend; var toAppend;
// select the correct list // select the correct list
if (word[0] == '-') { if (word[0] == '-') {