Skip to content

test: lock in correct handling of drive-letter paths on win32 - #373

Open
prajwal-raj wants to merge 1 commit into
isaacs:mainfrom
prajwal-raj:test-325-drive-letter-path
Open

prajwal-raj wants to merge 1 commit into
isaacs:mainfrom
prajwal-raj:test-325-drive-letter-path

Conversation

@prajwal-raj

Copy link
Copy Markdown

Refs #325. pathArg already excludes the drive prefix (e.g. C:) from the illegal-character check via path.substring(root.length), but there was no test asserting valid drive-letter/UNC paths pass without throwing, only that bad ones fail. This adds that coverage and locks in the current correct behavior.

Refs isaacs#325. pathArg already excludes the drive prefix (e.g. C:\) from the illegal-character check via path.substring(root.length), but there was no test asserting valid drive-letter/UNC paths pass without throwing, only that bad ones fail. This adds that coverage and locks in the current correct behavior.

This branch has not been deployed

No deployments
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