Skip to content

Commit

Permalink
account for root level paths
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeHagar committed Sep 12, 2024
1 parent 26573c4 commit 9b7f50f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/src/utils/miscellaneous.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ export function printExecutionTime(commandName: string, startedAt: number, api:
}

export function pathToFilename(path: string, pathSeparator: string) {
if (path === '/') {
return 'root';
}
return path
.replace(/~1/g, '/')
.replace(/~0/g, '~')
Expand Down

0 comments on commit 9b7f50f

Please sign in to comment.