Skip to content

Commit

Permalink
fix: remove whitespace between mulitple slashes
Browse files Browse the repository at this point in the history
Close #3743
  • Loading branch information
posva committed May 13, 2022
1 parent ecd2002 commit 86d7f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ export function parsePath (path: string): {
}

export function cleanPath (path: string): string {
return path.replace(/\/+/g, '/')
return path.replace(/\/(?:\s*\/)+/g, '/')
}

0 comments on commit 86d7f1f

Please sign in to comment.