Browse Source

Ensures proper split

main
Eric Amodio 2 years ago
parent
commit
cfcccb1a0a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/system/path.ts

+ 1
- 1
src/system/path.ts View File

@ -130,7 +130,7 @@ export function splitPath(
path = normalizePath(path);
repoPath = normalizePath(repoPath);
const index = commonBaseIndex(`${repoPath}/`, path, '/', ignoreCase);
const index = commonBaseIndex(`${repoPath}/`, `${path}/`, '/', ignoreCase);
if (index > 0) {
repoPath = path.substring(0, index);
path = path.substring(index + 1);

Loading…
Cancel
Save