1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

LibWeb: Commit transaction after parsing '+'?† n <signed-integer>

This commit is contained in:
stelar7 2022-05-08 01:03:32 +02:00 committed by Linus Groh
parent 469380d6bc
commit fa05c99b22

View file

@ -5425,6 +5425,7 @@ Optional<Selector::SimpleSelector::ANPlusBPattern> Parser::parse_a_n_plus_b_patt
// '+'?† n <signed-integer>
if (is_signed_integer(values.peek_token())) {
int b = values.next_token().token().to_integer();
transaction.commit();
return Selector::SimpleSelector::ANPlusBPattern { 1, b };
}