Skip to content

Commit c7c0200

Browse files
authored
[search] fix an undefined local variable (sphinx-doc#12235)
1 parent db4939f commit c7c0200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sphinx/themes/basic/static/searchtools.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ const Search = {
402402
},
403403

404404
query: (query) => {
405-
const searchParameters = Search._parseQuery(query);
406-
const results = Search._performSearch(...searchParameters);
405+
const [searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms] = Search._parseQuery(query);
406+
const results = Search._performSearch(searchQuery, searchTerms, excludedTerms, highlightTerms, objectTerms);
407407

408408
// for debugging
409409
//Search.lastresults = results.slice(); // a copy

0 commit comments

Comments
 (0)