Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by EdamAmex · committed by GitHub · parent 7183bbe · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/utils/url.ts+1 added-1 removed
208 unmodified lines
209 }210 if (value.indexOf('+') !== -1) {211 value = value.replace(/\+/g, ' ')212 }213 return /%/.test(value) ? decodeURIComponent_(value) : value213 return value.indexOf('%') !== -1 ? decodeURIComponent_(value) : value214}215216const _getQueryParam = (217 url: string,
96 unmodified lines