Closes #764: always search stopwords lowercased

This commit is contained in:
Georg Brandl committed 2014-01-10 20:51:35 +01:00
1 parent c7cb629106
commit fdb3a5ada8
1 file changed
+1 -1
+1 -1
View File
@@ -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;