Skip to content

Commit

Permalink
fix: clean more than two consecutive slashes (#3652)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 26, 2021
1 parent 221e8b3 commit 3e3a07e
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(/\/+/g, '/')
}

0 comments on commit 3e3a07e

Please sign in to comment.