mirror of
https://github.com/zebrajr/ladybird.git
synced 2026-01-15 12:15:15 +00:00
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.
59 KiB
59 KiB