サンプル
Reject trailing backslash escape characters in route paths with a TypeError instead of silently parsing them as literal 'undefined'
sha256:93c74cb1f7ef74961b40b28dcf37f91c7be41470608867cd3c8919185eddf096
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Reject trailing backslash escape characters in route paths with a TypeError instead of silently parsing them as literal 'undefined' HOW
- パッケージ
- path-to-regexp 8.4.2
- 環境
- 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
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9