diff --git a/lib/path.js b/lib/path.js index 768c4c1e5bc..04187aaf2f4 100644 --- a/lib/path.js +++ b/lib/path.js @@ -269,7 +269,7 @@ if (isWindows) { } if (start > end) return []; - return arr.slice(start, end - start + 1); + return arr.slice(start, end + 1); } var toParts = trim(to.split('\\')); @@ -413,7 +413,7 @@ if (isWindows) { } if (start > end) return []; - return arr.slice(start, end - start + 1); + return arr.slice(start, end + 1); } var fromParts = trim(from.split('/'));