From b1936aa1f3e8dd9f0547aff67f09849da788d08e Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 12 Jan 2014 21:29:35 +0100 Subject: [PATCH] Closes #1072: In the JS search, fix issues searching for upper-cased words by lowercasing words before stemming. --- CHANGES | 3 +++ sphinx/themes/basic/static/searchtools.js_t | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 03d3425ed..e76554f57 100644 --- a/CHANGES +++ b/CHANGES @@ -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 ------------- diff --git a/sphinx/themes/basic/static/searchtools.js_t b/sphinx/themes/basic/static/searchtools.js_t index 26121366e..523ecaaac 100644 --- a/sphinx/themes/basic/static/searchtools.js_t +++ b/sphinx/themes/basic/static/searchtools.js_t @@ -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] == '-') {