We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
posva
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent ecd2002 commit 86d7f1fCopy full SHA for 86d7f1f
src/util/path.js
@@ -70,5 +70,5 @@ export function parsePath (path: string): {
70
}
71
72
export function cleanPath (path: string): string {
73
- return path.replace(/\/+/g, '/')
+ return path.replace(/\/(?:\s*\/)+/g, '/')
74
0 commit comments