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
vzaidman
changed the title
Path.relative breaks for paths that differ by trailing comma in v23.0.0
Path.relative breaks for paths that differ by trailing separator in v23.0.0
Oct 17, 2024
Version
v23.0.0
Platform
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Consistent
What is the expected behavior? Why is that the expected behavior?
require('path').relative('/root', '/root/')
should return''
like in previous versions of nodeWhat do you see instead?
require('path').relative('/root', '/root/')
returns'../root/'
Additional information
Reproduces on Window and Ubuntu.
The text was updated successfully, but these errors were encountered: