-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib: add UNC support to url.pathToFileURL() #34743
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like
|
@mceachen ... yeah, that's a known issue. A fix is pending. |
lib/internal/url.js
Outdated
function encodePathChars(filepath) { | ||
if (filepath.includes('%')) | ||
filepath = filepath.replace(percentRegEx, '%25'); | ||
// In posix, "/" is a valid character in paths |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// In posix, "/" is a valid character in paths | |
// In posix, "\" is a valid character in paths |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good catch. I just moved this comment, btw, when I refactored out the function. Will fix.
fix mistake in comment
Thanks for the reviews! Is there anything else I need to do for this PR? (I haven't committed to this project before). |
Landed in 7b8c6b0. Thanks for the contribution! 🎉 |
Fixes: #34736
Checklist
make -j4 test
(UNIX) passesvcbuild test
(Windows) passes