瀏覽代碼

Ensures proper split

main
Eric Amodio 2 年之前
父節點
當前提交
cfcccb1a0a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/system/path.ts

+ 1
- 1
src/system/path.ts 查看文件

@ -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…
取消
儲存