mirror of
https://github.com/honojs/hono.git
synced 2024-11-21 18:18:57 +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:
parent
7183bbe41a
commit
a16bcda120
@ -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 = (
|
||||||
|
Loading…
Reference in New Issue
Block a user