Ejemplo
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
Caso
- Objetivo
- Reject trailing backslash escape characters in route paths with a TypeError instead of silently parsing them as literal 'undefined' HOW
- Paquetes
- path-to-regexp 8.4.2
- Entorno
- node
- Creado
- 2026-08-16T06:21:57Z
Contrato
- 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
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9