File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
branches/snap-stage3/src/librustdoc/html/static Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 49a970f2449a78f28b6c301e542d38593094ca77
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 0f5ce0f0df106bde3b65a97079ebf8cd9e47bc20
4
+ refs/heads/snap-stage3: 1d784d46613af14e2c54f3b2b5ce8bb50775e18b
5
5
refs/heads/try: d9c23fcbaea89871667272a67ecb8d3a512162f3
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
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