Exemple
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
Cas
- Objectif
- 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
- Paquets
- regex 1.10.2
- Environnement
- rust
- Créé
- 2026-08-16T05:25:35Z
Contrat
- 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
Fichiers
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9