mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 08:52:13 -05:00
Closes #1072: In the JS search, fix issues searching for upper-cased words by lowercasing words before stemming.
This commit is contained in:
1 parent
637e26ad0a
commit
b1936aa1f3
2 files changed
+4
-1
No files matched your search
@@ -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
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|||||||
@@ -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] == '-') {
|
||||||
|
|||||||
Reference in new issue
Block a user