From 9d481ffb33e20d20878b3f3b077dfcb6098136a2 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 18 Mar 2024 12:43:56 +0100 Subject: [PATCH] fix: use lookbehind regex only inside `joinRelativeURL` (#226) --- src/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index ffe91e64..257f21d0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -14,7 +14,6 @@ const PROTOCOL_RELATIVE_REGEX = /^([/\\]\s*){2,}[^/\\]/; const PROTOCOL_SCRIPT_RE = /^[\s\0]*(blob|data|javascript|vbscript):$/i; const TRAILING_SLASH_RE = /\/$|\/\?|\/#/; const JOIN_LEADING_SLASH_RE = /^\.?\//; -const JOIN_SEGMENT_SPLIT_RE = /(?