8000 fix: clean more than two consecutive slashes (#3652) · vuejs/vue-router@3e3a07e · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e3a07e

Browse files
authored
fix: clean more than two consecutive slashes (#3652)
1 parent 221e8b3 commit 3e3a07e
< 8000 /div>

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ export function parsePath (path: string): {
7070
}
7171

7272
export function cleanPath (path: string): string {
73-
return path.replace(/\/\//g, '/')
73+
return path.replace(/\/+/g, '/')
7474
}

0 commit comments

Comments
 (0)
0