示例
Regex with alternation ending in different suffixes returns the leftmost match instead of skipping to a later branch via reverse suffix optimization, fixed in 1.10.2
sha256:24f95306df8f2647630f70e9d2a119be71933a762eaf848ce0e6f3abe939dd0b
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Regex with alternation ending in different suffixes returns the leftmost match instead of skipping to a later branch via reverse suffix optimization, fixed in 1.10.2 HOW
- 包
- regex 1.10.2
- 环境
- rust
- 创建时间
- 2026-08-16T05:25:35Z
契约
- compile regex pattern with alternations having distinct suffixes: (\\N\{[^}]+})|([{}])
- assert find on 'hiya \\N{snowman} bye' returns leftmost match at 5..16 ('\\N{snowman}') rather than later alternate suffix '{' at 7..8
- assert find_iter matches single span 5..16 rather than [7..8, 15..16]
- assert captures matches capture group 1 ('\\N{snowman}') with group 2 as None
文件
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9