Skip to content

Commit

Permalink
fix: query param
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Feb 19, 2024
1 parent 3ef0a93 commit 7e210ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/fromQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export function fromQuery<returnType>(query: object): returnType {
else if (decoded.startsWith('#O_'))
decoded = JSON.parse(decoded.replace('#O_', ''))

obj[key] = decoded
// Omit any encoded ampersands.
obj[key.replace(/^amp;/, '')] = decoded
}
return obj as returnType
}

0 comments on commit 7e210ea

Please sign in to comment.