Commit Graph

1 Commits

Author SHA1 Message Date
Zied Jlassi eecb6dd5f8 fix(validate-refs): flag single-backslash Windows path leaks
The absolute-path-leak check used `[A-Z]:\\\\`, which in a regex literal
needs two backslashes — so a normal Windows path like C:\Users\... slipped
straight through. Widened it to match either separator (C:\ or C:/).

While here, exported checkAbsolutePathLeaks and added a small test
(test/test-abs-path-leak.js, wired into npm test) covering the
single-backslash case plus the existing Unix and code-block behaviour.
2026-06-20 14:21:38 +02:00