ladybird/Libraries/LibRegex/Rust
Andreas Kling 33f9d464de LibRegex: Preserve negated class direction in lookbehind
Compile the synthetic assertion for negated classes in the same
direction as the surrounding matcher. We were hardcoding a
lookahead for `[^...]`, so lookbehind checked the wrong side of the
current position and missed valid `/v` matches such as
`(?<=[^\p{Emoji}])2`.

Apply the same fix to unicode set classes, since they use the same
negative-lookaround-plus-`AnyChar` lowering for complements. Add
reduced `RegExp.js` coverage for both `[^\p{Emoji}]` and
`[[^\p{Emoji}]]` in lookbehind, plus the original complex `/gv`
regression.
2026-03-31 15:59:04 +02:00
..
src LibRegex: Preserve negated class direction in lookbehind 2026-03-31 15:59:04 +02:00
build.rs Meta: Make Rust FFI headers reproducible 2026-03-31 15:59:04 +02:00
Cargo.toml LibRegex/Rust: Add the ECMA-262 regex engine 2026-03-27 17:32:19 +01:00
cbindgen.toml LibRegex/Rust: Add the ECMA-262 regex engine 2026-03-27 17:32:19 +01:00