Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
braces
  • Loading branch information
targos authored Mar 22, 2018
commit 579847d3c74ed0a675063c6d2d86d1532b7645c3
5 changes: 3 additions & 2 deletions lib/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,11 +368,12 @@ const win32 = {
}

var tail;
if (rootEnd < len)
if (rootEnd < len) {
tail = normalizeString(path.slice(rootEnd), !isAbsolute, '\\',
isPathSeparator);
else
} else {
tail = '';
}
if (tail.length === 0 && !isAbsolute)
tail = '.';
if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1)))
Expand Down