Skip to content

Commit

Permalink
sanitizeUrl regex remove semi update
Browse files Browse the repository at this point in the history
  • Loading branch information
hdwivedi9R committed Dec 28, 2022
1 parent 3f74b45 commit 7cf9c40
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 @@ -45,7 +45,7 @@ export const sanitizeString = (
*/
export const sanitizeUrl = (
str: string,
expression: RegExp = /[`~!$%^*()|+;'"<>{}[\]\\]/gi
expression: RegExp = /[`~!$%^*()|+'"<>{}[\]\\]/gi
) => (str ? str.replace(expression, '') : str);

/**
Expand Down

0 comments on commit 7cf9c40

Please sign in to comment.