mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-24 03:40:30 +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