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
commit fa05c99b22
Notes: sideshowbarker 2024-07-17 23:00:03 +09:00

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 };
}