diff --git a/src/util/path.js b/src/util/path.js index de0509490..9d048437f 100644 --- a/src/util/path.js +++ b/src/util/path.js @@ -70,5 +70,5 @@ export function parsePath (path: string): { } export function cleanPath (path: string): string { - return path.replace(/\/+/g, '/') + return path.replace(/\/(?:\s*\/)+/g, '/') }