File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
librustdoc/html/static/js Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -3911,6 +3911,7 @@ function initSearch(searchIndx) {
3911
3911
docSearch = new DocSearch ( rawSearchIndex ) ;
3912
3912
} else if ( typeof exports !== "undefined" ) {
3913
3913
exports . docSearch = new DocSearch ( rawSearchIndex ) ;
3914
+ exports . parseQuery = DocSearch . parseQuery ;
3914
3915
}
3915
3916
}
3916
3917
Original file line number Diff line number Diff line change @@ -438,15 +438,15 @@ function loadSearchJS(doc_folder, resource_suffix) {
438
438
const docSearch = searchModule . docSearch ;
439
439
return {
440
440
doSearch : function ( queryStr , filterCrate , currentCrate ) {
441
- return docSearch . execQuery ( docSearch . parseQuery ( queryStr ) ,
441
+ return docSearch . execQuery ( searchModule . parseQuery ( queryStr ) ,
442
442
filterCrate , currentCrate ) ;
443
443
} ,
444
444
getCorrections : function ( queryStr , filterCrate , currentCrate ) {
445
- const parsedQuery = docSearch . parseQuery ( queryStr ) ;
445
+ const parsedQuery = searchModule . parseQuery ( queryStr ) ;
446
446
docSearch . execQuery ( parsedQuery , filterCrate , currentCrate ) ;
447
447
return parsedQuery . correction ;
448
448
} ,
449
- parseQuery : docSearch . parseQuery ,
449
+ parseQuery : searchModule . parseQuery ,
450
450
} ;
451
451
}
452
452
You can’t perform that action at this time.
0 commit comments