Skip to content

Commit 8a683d9

Browse files
committed
fixup! fix: update cleanPath to replace pipe characters with encoded value
1 parent eab09b6 commit 8a683d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/router-core/src/path.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function joinPaths(paths: Array<string | undefined>) {
1919
)
2020
}
2121

22-
/** Remove repeated slashes from a path string. */
22+
/** Remove repeated slashes and replace | to %7C from a path string. */
2323
export function cleanPath(path: string) {
2424
// remove double slashes
2525
return path.replace(/\/{2,}/g, '/').replace(/\|/g, '%7C')

0 commit comments

Comments
 (0)