mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
[search] fix an undefined local variable (#12235)
This commit is contained in:
@@ -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