Commit f3971f58 authored by Evan Lucas's avatar Evan Lucas Committed by Jeremiah Senkpiel
Browse files

path: fix normalize for absolutes

Fixes a regression introduced by
b212be08.

path.normalize(''/a/b/c/../../../x/y/z'') should return '/x/y/z'.

Fixes: https://github.com/nodejs/node/issues/5585
PR-URL: https://github.com/nodejs/node/pull/5589


Reviewed-By: default avatarMyles Borins <myles.borins@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarBrian White <mscdex@mscdex.net>
parent 7be726f8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment