Commit 315d1f55 authored by Weijia Wang's avatar Weijia Wang
Browse files

path: fix path.normalize for relative paths

After slicing, the `lastSegmentLength` should be calculated again,
instead of assigning value `j`.

PR-URL: https://github.com/nodejs/node/pull/17974
Fixes: https://github.com/nodejs/node/issues/17928


Reviewed-By: default avatarMichaël Zasso <targos@protonmail.com>
Reviewed-By: default avatarGibson Fahnestock <gibfahn@gmail.com>
parent 8aec3638
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