From 3e3a07ee6e7defd6cae75bddcede5a28b0092709 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 26 Oct 2021 15:45:45 +0100 Subject: [PATCH] fix: clean more than two consecutive slashes (#3652) --- 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, '/') }