示例
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