File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
branches/auto/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 @@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
13
13
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
14
14
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
15
15
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16
- refs/heads/auto: 0f5ce0f0df106bde3b65a97079ebf8cd9e47bc20
16
+ refs/heads/auto: 1d784d46613af14e2c54f3b2b5ce8bb50775e18b
17
17
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
18
18
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
19
19
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
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