Chore: Add validation for contact phone field (#2105)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
export const isPhoneE164 = value => !!value.match(/^\+[1-9]\d{1,14}$/);
|
||||
export const isPhoneE164OrEmpty = value => isPhoneE164(value) || value === '';
|
||||
Reference in New Issue
Block a user