LibRegex: Take trailing inversion state into account in block comparison

Fixes #3421.
This commit is contained in:
Ali Mohammad Pur 2025-02-01 07:59:29 +01:00 committed by Jelle Raaijmakers
commit 08ebfaff17
Notes: github-actions[bot] 2025-02-01 10:31:02 +00:00
2 changed files with 3 additions and 1 deletions

View file

@ -715,6 +715,7 @@ TEST_CASE(ECMA262_match)
{ "^(\\d{4}|[+-]\\d{6})(?:-?(\\d{2})(?:-?(\\d{2}))?)?(?:[ T]?(\\d{2}):?(\\d{2})(?::?(\\d{2})(?:[,.](\\d{1,}))?)?(?:(Z)|([+-])(\\d{2})(?::?(\\d{2}))?)?)?$"sv,
""sv,
false, }, // See above, also ladybird#2931.
{ "[^]*[^]"sv, "i"sv, true }, // Optimizer bug, ignoring an enabled trailing 'invert' when comparing blocks, ladybird#3421.
};
// clang-format on