0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-24 19:26:56 +01:00

perf(utils/url): improve performance of url utility (#3593)

* perf(utils/url): improve performancec of url utility

* Revert cache length
This commit is contained in:
EdamAmex 2024-10-31 15:31:40 +09:00 committed by GitHub
parent 7183bbe41a
commit a16bcda120
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,7 +210,7 @@ const _decodeURI = (value: string) => {
if (value.indexOf('+') !== -1) { if (value.indexOf('+') !== -1) {
value = value.replace(/\+/g, ' ') value = value.replace(/\+/g, ' ')
} }
return /%/.test(value) ? decodeURIComponent_(value) : value return value.indexOf('%') !== -1 ? decodeURIComponent_(value) : value
} }
const _getQueryParam = ( const _getQueryParam = (