mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 16:32:10 -05:00
[search] fix an undefined local variable (#12235)
This commit is contained in:
1 parent
db4939f007
commit
c7c02002e5
1 file changed
+2
-2
@@ -402,8 +402,8 @@ const Search = {
|
||||
},
|
||||
|
||||
query: (query) => {
|
||||
const searchParameters = Search._parseQuery(query);
|
||||
const results = Search._performSearch(...searchParameters);
|
||||
const [searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms] = Search._parseQuery(query);
|
||||
const results = Search._performSearch(searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms);
|
||||
|
||||
// for debugging
|
||||
//Search.lastresults = results.slice(); // a copy
|
||||
|
||||
Reference in new issue
Block a user