There was an error while loading. Please reload this page.
1 parent fc530ea commit 58edefdCopy full SHA for 58edefd
1 file changed
lib/path.js
@@ -518,11 +518,11 @@ const win32 = {
518
lastCommonSep = 3;
519
}
520
521
+ if (lastCommonSep === -1)
522
+ lastCommonSep = 0;
523
524
525
let out = '';
- if (lastCommonSep === -1)
- lastCommonSep = 0;
526
// Generate the relative path based on the path difference between `to` and
527
// `from`
528
for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
0 commit comments