stripProjectPrefix tweak

This commit is contained in:
Alex Gleason committed 2026-01-21 21:52:58 -06:00
1 parent bb28e71e50
commit 79b336f967
1 file changed
+3 -1
+3 -1
View File
@@ -88,7 +88,9 @@ function stripProjectPrefix(path: string, projectId?: string, projectsPath = '/p
if (!projectId) return path;
const projectPrefix = `${projectsPath}/${projectId}/`;
if (path.startsWith(projectPrefix)) {
if (path === `${projectsPath}/${projectId}`) {
return '.';
} else if (path.startsWith(projectPrefix)) {
return path.slice(projectPrefix.length);
}