Skip to content

Commit

Permalink
refactor(withoutFragment): decouple from withFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 5, 2024
1 parent 48237ab commit 712b8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Expand Up @@ -306,5 +306,5 @@ export function withFragment(input: string, hash: string): string {
}

export function withoutFragment(input: string): string {
return withFragment(input, "");
return stringifyParsedURL({ ...parseURL(input), hash: "" });
}

0 comments on commit 712b8d5

Please sign in to comment.