diff --git a/src/util/path.js b/src/util/path.js index 8e110343b..de0509490 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(/\/+/g, '/') }