remove rules
This commit is contained in:
parent
31f0734615
commit
7053a0ecf8
2 changed files with 0 additions and 8 deletions
|
|
@ -13,7 +13,6 @@ const globalRules = Object.freeze({
|
||||||
EMAIL_ADDRESS_FORMAT: 'email-address-format',
|
EMAIL_ADDRESS_FORMAT: 'email-address-format',
|
||||||
PHONE_NUMBER_REQUIRED: 'phone-number-required',
|
PHONE_NUMBER_REQUIRED: 'phone-number-required',
|
||||||
PHONE_NUMBER_FORMAT: 'phone-number-format',
|
PHONE_NUMBER_FORMAT: 'phone-number-format',
|
||||||
PHONE_NUMBER_FORMAT_SHORT: 'phone-number-format-short',
|
|
||||||
OPTION_REQUIRED: 'option-required'
|
OPTION_REQUIRED: 'option-required'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,13 +45,6 @@ function defineGlobalPhoneNumberRules() {
|
||||||
errorMessages.PHONE_NUMBER_FORMAT
|
errorMessages.PHONE_NUMBER_FORMAT
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
defineRule(
|
|
||||||
globalRules.PHONE_NUMBER_FORMAT_SHORT,
|
|
||||||
regex(
|
|
||||||
/^(\([0-9]{3}\)|[0-9]{3}) *[-.]? *[0-9]{3} *[-.]? *[0-9]{4}$/,
|
|
||||||
errorMessages.PHONE_NUMBER_FORMAT_SHORT
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue