diff options
-rw-r--r-- | lib/path.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/path.js b/lib/path.js index 768c4c1e5b..04187aaf2f 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('/')); |