From fdb3a5ada81cb75cca25c60cff71b889b18b7652 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 10 Jan 2014 20:51:35 +0100 Subject: [PATCH] Closes #764: always search stopwords lowercased --- sphinx/themes/basic/static/searchtools.js_t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/themes/basic/static/searchtools.js_t b/sphinx/themes/basic/static/searchtools.js_t index 50b970ff5..26121366e 100644 --- a/sphinx/themes/basic/static/searchtools.js_t +++ b/sphinx/themes/basic/static/searchtools.js_t @@ -150,7 +150,7 @@ var Search = { objectterms.push(tmp[i].toLowerCase()); } - if ($u.indexOf(stopwords, tmp[i]) != -1 || tmp[i].match(/^\d+$/) || + if ($u.indexOf(stopwords, tmp[i].toLowerCase()) != -1 || tmp[i].match(/^\d+$/) || tmp[i] === "") { // skip this "word" continue;