サンプル
path-to-regexp 8.4.2: Reject trailing backslash escape characters in route paths with a TypeError instead of silently parsing them as literal 'undefined'
検証済みサンプル — npm path-to-regexp 8.4.2: Reject trailing backslash escape characters in route paths with a TypeError instead of silently parsing them as literal…
sha256:93c74cb1f7ef74961b40b28dcf37f91c7be41470608867cd3c8919185eddf096
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 2
- ビルドした署名鍵
- 2
宣言された環境
node linux x64 node node npm
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1 |
2026-08-16 |
| node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1 |
2026-08-18 |
ケース
HOW- ゴール
- Reject trailing backslash escape characters in route paths with a TypeError instead of silently parsing them as literal 'undefined'
- パッケージ
- シンボル
-
- parse
- pathToRegexp
- match
- compile
- PathError
- 環境
- node
- 作成日
- 2026-08-16T06:21:57Z
コントラクト
- parse('/test\\') throws TypeError (PathError) for unterminated trailing escape sequence
- pathToRegexp('/test\\') throws TypeError instead of compiling /^(?:\/testundefined)(?:\/$)?$/i
- match('/test\\') and compile('/test\\') throw TypeError on trailing backslash
- valid escape sequences such as '\:' preserve literal characters without error
ファイル
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs