Skip to content

Commit 3816bcd

Browse files
authored
Merge pull request #10283 from tk0miya/10277_search_shortwords
Fix #10277: html search: Could not search short words (ex. "use")
2 parents 115358d + c77ecf5 commit 3816bcd

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Bugs fixed
3434
``no-value`` option
3535
* #9971: autodoc: TypeError is raised when the target object is annotated by
3636
unhashable object
37+
* #10277: html search: Could not search short words (ex. "use")
3738
* #9529: LaTeX: named auto numbered footnote (ex. ``[#named]``) that is referred
3839
multiple times was rendered to a question mark
3940
* #9924: LaTeX: multi-line :rst:dir:`cpp:function` directive has big vertical

sphinx/themes/basic/static/searchtools.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ var Search = {
172172
}
173173
// stem the word
174174
var word = stemmer.stemWord(tmp[i].toLowerCase());
175-
// prevent stemmer from cutting word smaller than two chars
176-
if(word.length < 3 && tmp[i].length >= 3) {
177-
word = tmp[i];
178-
}
179175
var toAppend;
180176
// select the correct list
181177
if (word[0] == '-') {

0 commit comments

Comments
 (0)