Skip to content

Commit

Permalink
fixed getUrlParams regex
Browse files Browse the repository at this point in the history
  • Loading branch information
hdwivedi9R committed Dec 28, 2022
1 parent 7cf9c40 commit 9827d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const sanitizeUrl = (
*/
export const getSafeSearchParam = (
p: string,
expression: RegExp = /[`~!$%^*()|+;'"<>{}[\]\\]/gi
expression: RegExp = /[`~!@#$%^&*()|+=?;:'",.<>{}[\]\\/]/gi
): string | null => {
if (typeof window !== 'undefined') {
const params = new URLSearchParams(window.location?.search);
Expand Down

0 comments on commit 9827d63

Please sign in to comment.