Skip to content

feat(CORESERV-12174): add optional decode param to parseQueryParamsSt… - #88

Merged
lexbeloff merged 1 commit into
masterfrom
CORESERV-12174
Oct 14, 2026
Merged

lexbeloff merged 1 commit into
masterfrom
CORESERV-12174

Conversation

@shirochenkov

Copy link
Copy Markdown

feat: add optional decode param to parseQueryParamsString

parseQueryParamsString always runs decodeURIComponent, so strings that are already decoded (e.g. from URLSearchParams.get) get decoded twice: 100% throws URIError, a%41b becomes aAb.

  • parseQueryParamsString(str, { decode: false }) skips decoding. The default is unchanged.
  • Added tests and documented the encode/decode defaults in the README.

@lexbeloff
lexbeloff merged commit 3bb964d into master Oct 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants