Skip to content

Use nodePath.sep instead of hardcoded slash in isPathWithinRoot#170

Open
mutewinter wants to merge 1 commit intovercel-labs:mainfrom
mutewinter:fix/path-sep-isPathWithinRoot
Open

Use nodePath.sep instead of hardcoded slash in isPathWithinRoot#170
mutewinter wants to merge 1 commit intovercel-labs:mainfrom
mutewinter:fix/path-sep-isPathWithinRoot

Conversation

@mutewinter
Copy link
Copy Markdown

Fixes path containment check on Windows where the separator is backslash.

Currently this breaks find, grep, cat, etc.

Fix tested and working with my fork on Windows 10 Home

Fixes path containment check on Windows where the separator is
backslash.

Currently this breaks find, grep, cat, etc.
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

@mutewinter is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant