File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
branches/dist-snap/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 @@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: 0f5ce0f0df106bde3b65a97079ebf8cd9e47bc20
9
+ refs/heads/dist-snap: 1d784d46613af14e2c54f3b2b5ce8bb50775e18b
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
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