Commit 3d3b45a
committed
path: fix normalize for absolutes
Fixes a regression introduced by
b212be0.
path.normalize(''/a/b/c/../../../x/y/z'') should return '/x/y/z'.
Fixes: #5585
PR-URL: #5589
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>1 parent 1d9a2b2 commit 3d3b45aCopy full SHA for 3d3b45a
File tree
Expand file treeCollapse file tree
2 files changed
+5
-2
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+5
-2
lines changedOpen diff view settings
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
| 47 | + |
48 | 48 | |
49 | 49 | |
50 | 50 | |
| ||
110 | 110 | |
111 | 111 | |
112 | 112 | |
113 | | - |
| 113 | + |
114 | 114 | |
115 | 115 | |
116 | 116 | |
|
Collapse file
+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
377 | 377 | |
378 | 378 | |
379 | 379 | |
| 380 | + |
380 | 381 | |
381 | 382 | |
382 | 383 | |
383 | 384 | |
384 | 385 | |
385 | 386 | |
386 | 387 | |
| 388 | + |
| 389 | + |
387 | 390 | |
388 | 391 | |
389 | 392 | |
|
0 commit comments