Files
ladybird/Libraries/LibRegex/RegexByteCode.cpp
aplefull 1b570fcd61 LibRegex: Correct negated character class escapes behavior
Patterns like /[^\S]/ should match whitespace characters, but previously
would fail to match. The position would advance twice: once during the
character class comparison, and again at the end when temporary_inverse
was reset. This caused matches to be skipped incorrectly.

Now we advance at the end only if position hasn't already changed during
the loop.
2025-12-23 11:04:16 +01:00

59 KiB