サンプル
regex 1.10.2: 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
検証済みサンプル — cargo regex 1.10.2: Regex with alternation ending in different suffixes returns the leftmost match instead of skipping to a later branch via…
sha256:24f95306df8f2647630f70e9d2a119be71933a762eaf848ce0e6f3abe939dd0b
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 2
- ビルドした署名鍵
- 2
宣言された環境
rust linux x64 rust rust cargo
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| rust 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · cargo@1 |
2026-08-16 |
| rust 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · cargo@1 |
2026-08-18 |
ケース
HOW- ゴール
- 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
- パッケージ
- シンボル
-
- regex::Regex::find
- regex::Regex::find_iter
- regex::Regex::captures
- 環境
- 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