Sample
Escape glob magic characters using backslash prefixing in default mode and character classes under windowsPathsNoEscape mode
sha256:b258b376e90297d1f57ecab615e49dc2bdf3f256078365f2bfe44a2c4e8ff87c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- node
- Operating system
- linux
- Architecture
- x64
- Runtime
- node
- Language
- node
- Package manager
- npm
Verification-run environments
- Execution context
- node 22
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- node 22
- Language
- javascript
- Package manager
- npm
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18
Case
- Goal
- Escape glob magic characters using backslash prefixing in default mode and character classes under windowsPathsNoEscape mode HOW
- Packages
-
minimatch 10.1.1
- Environment
- node
- Created
- 2026-08-18T01:23:57Z
Commonly assumed
minimatch.escape prefixes backslashes before all special characters including Windows path separators and braces
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- minimatch.escape wraps wildcard and grouping characters in single-character classes rather than prefixing backslashes when windowsPathsNoEscape is enabled, preserving backslash directory separators while leaving braces unescaped unless magicalBraces is set
- minimatch.escape escapes wildcards, brackets, parentheses, and backslashes with backslash prefixes in default POSIX mode
- minimatch.escape leaves extglob modifiers (+, @, !) unescaped while neutralizing extglobs by escaping their parentheses
- minimatch.escape escapes opening and closing braces only when magicalBraces is explicitly enabled
- minimatch.defaults preserves configured windowsPathsNoEscape and magicalBraces options across escape calls
- minimatch matches literal filenames containing wildcard characters when queried with the escaped pattern
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18 · ed25519:d91480838ac982c9