File tree Expand file tree Collapse file tree 4 files changed +32
-13
lines changed Expand file tree Collapse file tree 4 files changed +32
-13
lines changed Original file line number Diff line number Diff line change @@ -488,23 +488,22 @@ var Parser = (function ParserClosure() {
488
488
break ;
489
489
}
490
490
found = false ;
491
- for ( i = 0 , j = 0 ; i < scanLength ; i ++ ) {
492
- var b = scanBytes [ i ] ;
493
- if ( b !== ENDSTREAM_SIGNATURE [ j ] ) {
494
- i -= j ;
495
- j = 0 ;
496
- } else {
491
+ i = 0 ;
492
+ while ( i < scanLength ) {
493
+ j = 0 ;
494
+ while ( j < ENDSTREAM_SIGNATURE_LENGTH &&
495
+ scanBytes [ i + j ] === ENDSTREAM_SIGNATURE [ j ] ) {
497
496
j ++ ;
498
- if ( j >= ENDSTREAM_SIGNATURE_LENGTH ) {
499
- i ++ ;
500
- found = true ;
501
- break ;
502
- }
503
497
}
498
+ if ( j >= ENDSTREAM_SIGNATURE_LENGTH ) {
499
+ found = true ;
500
+ break ;
501
+ }
502
+ i ++ ;
504
503
}
505
504
if ( found ) {
506
- skipped += i - ENDSTREAM_SIGNATURE_LENGTH ;
507
- stream . pos += i - ENDSTREAM_SIGNATURE_LENGTH ;
505
+ skipped += i ;
506
+ stream . pos += i ;
508
507
break ;
509
508
}
510
509
skipped += scanLength ;
Original file line number Diff line number Diff line change
1
+ http://web.archive.org/web/20150922201828/http://w2.eff.org/legal/cases/betamax/betamax_oral_argument2.pdf
Original file line number Diff line number Diff line change
1
+ http://web.archive.org/web/20160125220711/http://www.star.bnl.gov/public/daq/HARDWARE/21264_data_sheet.pdf
Original file line number Diff line number Diff line change 921
921
"rounds" : 1 ,
922
922
"type" : " eq"
923
923
},
924
+ { "id" : " issue1536" ,
925
+ "file" : " pdfs/issue1536.pdf" ,
926
+ "md5" : " bcaa52e6216399592ad5aa9fc49f1436" ,
927
+ "rounds" : 1 ,
928
+ "link" : true ,
929
+ "firstPage" : 6 ,
930
+ "lastPage" : 6 ,
931
+ "type" : " eq"
932
+ },
933
+ { "id" : " issue2098" ,
934
+ "file" : " pdfs/issue2098.pdf" ,
935
+ "md5" : " e9fa2b7cb935ffb95b510322d1e047e1" ,
936
+ "rounds" : 1 ,
937
+ "link" : true ,
938
+ "firstPage" : 1 ,
939
+ "lastPage" : 1 ,
940
+ "type" : " eq"
941
+ },
924
942
{ "id" : " bpl13210" ,
925
943
"file" : " pdfs/bpl13210.pdf" ,
926
944
"md5" : " 8a08512baa9fa95378d9ad4b995947c7" ,
You can’t perform that action at this time.
0 commit comments