Пример
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