From a16bcda1209f18a1b32a1c6cd2c0e5404c7b8a69 Mon Sep 17 00:00:00 2001 From: EdamAmex <121654029+EdamAme-x@users.noreply.github.com> Date: Thu, 31 Oct 2024 15:31:40 +0900 Subject: [PATCH] perf(utils/url): improve performance of url utility (#3593) * perf(utils/url): improve performancec of url utility * Revert cache length --- src/utils/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/url.ts b/src/utils/url.ts index 92252fa3..f9f82281 100644 --- a/src/utils/url.ts +++ b/src/utils/url.ts @@ -210,7 +210,7 @@ const _decodeURI = (value: string) => { if (value.indexOf('+') !== -1) { value = value.replace(/\+/g, ' ') } - return /%/.test(value) ? decodeURIComponent_(value) : value + return value.indexOf('%') !== -1 ? decodeURIComponent_(value) : value } const _getQueryParam = (