From 86d7f1fdaa36432f6564309925690ec20bb2981e Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 13 May 2022 17:36:25 +0200 Subject: [PATCH] fix: remove whitespace between mulitple slashes Close #3743 --- 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 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, '/') }