Skip to content

Commit

Permalink
Fixed linting issue with mailto regex having useless escapes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Guest - Work authored and Matthew Guest - Work committed Jan 21, 2025
1 parent 3ea2ea4 commit d868a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VAMobile/src/constants/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const EMAIL_REGEX_EXP_PII = new RegExp(
)

export const MAIL_TO_REGEX_EXP_PII = new RegExp(
/(?<![a-zA-Z0-9@_\-])(?:mailto:)?(([^<>()\]\\.,;:\s@"]+(\.[^<>()\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))(?![a-zA-Z0-9@_\-])/gi,
/(?<![a-zA-Z0-9@_-])(?:mailto:)?(([^<>()\]\\.,;:\s@"]+(\.[^<>()\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))(?![a-zA-Z0-9@_-])/gi,
)

export const PHONE_REGEX_EXP_PII = new RegExp(
Expand Down

0 comments on commit d868a9c

Please sign in to comment.