Skip to content

Commit

Permalink
chore: updated regex for phone number
Browse files Browse the repository at this point in the history
  • Loading branch information
Usmanfee committed Oct 10, 2024
1 parent 1fbc655 commit c03d123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/Patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const Patterns = {
LABEL: /^[a-z0-9-_ ]{1,80}$/i,
BPN: /^BPNL[0-9A-Z]{12}$/i,
MAIL: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*))@(([a-z0-9-]+\.)+[a-z]{2,})$/,
PHONE: /^(\+|00)?(?:[0-9] ?){6,14}[0-9]$/,
PHONE: /^(\+|00)?(?:\d\s?){6,14}\d$/,
DOMAIN: new RegExp(`^${DOMAIN.source}$`, 'i'),
PATH: new RegExp(`^${URLPATH.source}$`, 'i'),
URL: urlPattern,
Expand Down

0 comments on commit c03d123

Please sign in to comment.