Skip to content

Commit 86d7f1f

Browse files
committedMay 13, 2022
fix: remove whitespace between mulitple slashes
Close #3743
1 parent ecd2002 commit 86d7f1f

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(/\/(?:\s*\/)+/g, '/')
7474
}

0 commit comments

Comments
 (0)
Please sign in to comment.