Canonicalize win32 paths to lowercase#342
Conversation
src/utils.ts
Outdated
| : urlOrPath; | ||
| } | ||
|
|
||
| export function isFilePath(candidate: string): boolean { |
There was a problem hiding this comment.
This will only match Windows-style paths. If it won't match unix-style paths, can you give the method a more specific name? Does it need to be exported?
There was a problem hiding this comment.
Changed to isWindowsFilePath
4bfa1f2 to
bd897e0
Compare
bd6d219 to
9e74861
Compare
|
@digeff What's the problem being solved here? Please provide some context for the reviewers here. Should this happen on all platforms? etc? |
|
@auchenberg This is Windows only |
|
@digeff Could you write a test that captures the case that was missed, and prompted this PR? I think you said it was for the webroot? |
Canonicalize win32 paths to lowercase