You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a similar case with UNC paths, where it seems like the deduplication of forward slashes also break UNC paths in a similar way.
It works the first time, but after the leading slashes have been normalized, consequent calls to join replace them with a single slash.
Testing locally, original reproduction is ONLY valid on windows, path.join('https://example.com', 'image.png') on POSIX, returns https:/example.com/image.png in Node 22.12. (path utils are not URL utils..)
The second issue with UNC, is valid through (using path.win32. API only).
Environment
pathe v1.1.2
Node.js v20.10.0, Windows 11
Reproduction
Describe the bug
When using
join
with a URL, the double//
is reduced to a single/
:Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: