File tree 1 file changed +5
-3
lines changed
src/librustdoc/html/static 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 368
368
}
369
369
370
370
function getQuery ( ) {
371
- var matches , type , query = $ ( '.search-input' ) . val ( ) ;
371
+ var matches , type , query , raw = $ ( '.search-input' ) . val ( ) ;
372
+ query = raw ;
372
373
373
374
matches = query . match ( / ^ ( f n | m o d | s t r u c t | e n u m | t r a i t | t ( y p e ) ? d ( e f ) ? ) \s * : \s * / i) ;
374
375
if ( matches ) {
379
380
}
380
381
381
382
return {
383
+ raw : raw ,
382
384
query : query ,
383
385
type : type ,
384
386
id : query + type ,
534
536
if ( browserSupportsHistoryApi ( ) ) {
535
537
if ( ! history . state && ! params . search ) {
536
538
history . pushState ( query , "" , "?search=" +
537
- encodeURIComponent ( query . query ) ) ;
539
+ encodeURIComponent ( query . raw ) ) ;
538
540
} else {
539
541
history . replaceState ( query , "" , "?search=" +
540
- encodeURIComponent ( query . query ) ) ;
542
+ encodeURIComponent ( query . raw ) ) ;
541
543
}
542
544
}
543
545
You can’t perform that action at this time.
0 commit comments