Skip to content

Commit 003c45d

Browse files
committed
remove unneccesary INFO logic on main dispatch
1 parent 9378497 commit 003c45d

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

‎src/engine.rs‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -652,20 +652,13 @@ fn _match<S: StrDrive>(req: &Request<S>, state: &mut State, ctx: MatchContext) -
652652
general_op_in!(|set, c| charset(set, lower_unicode(c)))
653653
}
654654
SreOpcode::IN_LOC_IGNORE => general_op_in!(charset_loc_ignore),
655-
SreOpcode::INFO => {
656-
let min = ctx.peek_code(req, 3) as usize;
657-
if ctx.remaining_chars(req) < min {
658-
break 'result false;
659-
}
660-
ctx.skip_code_from(req, 1);
661-
}
662655
SreOpcode::MARK => {
663656
state
664657
.marks
665658
.set(ctx.peek_code(req, 1) as usize, ctx.string_position);
666659
ctx.skip_code(2);
667660
}
668-
SreOpcode::JUMP => ctx.skip_code_from(req, 1),
661+
SreOpcode::INFO | SreOpcode::JUMP => ctx.skip_code_from(req, 1),
669662
/* <REPEAT> <skip> <1=min> <2=max> item <UNTIL> tail */
670663
SreOpcode::REPEAT => {
671664
let repeat_ctx = RepeatContext {

0 commit comments

Comments
 (0)