Skip to content

Commit 3e3a07e

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/path.js

+1-1
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)