Skip to content

Commit

Permalink
fix: #13
Browse files Browse the repository at this point in the history
  • Loading branch information
hehehai committed Jun 16, 2022
1 parent f7ed31f commit ea85683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/DetailList.svelte
Expand Up @@ -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 += '/';
}
Expand Down

0 comments on commit ea85683

Please sign in to comment.