From cfcccb1a0a487248f3d591052c25a9d36e7214c0 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 26 Jan 2022 03:56:21 -0500 Subject: [PATCH] Ensures proper split --- src/system/path.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/path.ts b/src/system/path.ts index f5b7ac6..414d6dc 100644 --- a/src/system/path.ts +++ b/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);