From ea85683b846010ef5995ee33352ac7292042eda2 Mon Sep 17 00:00:00 2001 From: hehehai Date: Thu, 16 Jun 2022 20:37:29 +0800 Subject: [PATCH] fix: #13 --- src/components/DetailList.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/DetailList.svelte b/src/components/DetailList.svelte index 97fd137..835b59e 100644 --- a/src/components/DetailList.svelte +++ b/src/components/DetailList.svelte @@ -7,6 +7,11 @@ const mergeWorkspacePath = (workspacePath: string) => { let path = workspacePath === '.' ? '' : workspacePath; + // example/* -> example/ + if (path.endsWith("*")) { + return `${repoBlobPath}${path.slice(0, -1)}`; + } + // example -> example/ if (!path.endsWith('/')) { path += '/'; }