Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 15, 2024
1 parent 07c4c63 commit 5b31f47
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ export function joinRelativeURL(..._input: string[]): string {
continue;
}
if (s === "..") {
if (segments.length === 1 && hasProtocol(segments[0])) {
continue;
}
segments.pop();
segmentsDepth--;
continue;
Expand Down

0 comments on commit 5b31f47

Please sign in to comment.