From 05d474538bea05af03175c3806c902c7a88d0b7c Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 25 Oct 2021 23:08:17 +0100 Subject: [PATCH] fix: clean more than two consecutive slashes --- src/util/path.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '/') }