ladybird/Libraries/LibRegex/Rust
Andreas Kling 201e615aad LibRegex: Preserve set-op direction in backward /v matches
Unicode-set intersection and subtraction always lowered their
post-consumption checks as lookbehinds. That is correct while the
outer matcher runs forward, but inside lookbehind the consumed text
sits to the right of the current position, so the checks must flip
to lookahead instead. Because we always looked left, patterns like
`(?<=[[^A-Z]--[A-Z]])P{N}` and the reported fuzz case missed
matches whenever the character before the consumed one changed the
set-operation result.

Preserve the surrounding match direction when compiling those
checks, and add coverage for reduced subtraction and intersection
cases plus the original regression.
2026-03-31 15:59:04 +02:00
..
src LibRegex: Preserve set-op direction in backward /v matches 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
cbindgen.toml