remove rules

This commit is contained in:
Bill Richardson 2023-08-03 17:05:17 -04:00
parent 31f0734615
commit 7053a0ecf8
2 changed files with 0 additions and 8 deletions

View file

@ -13,7 +13,6 @@ const globalRules = Object.freeze({
EMAIL_ADDRESS_FORMAT: 'email-address-format',
PHONE_NUMBER_REQUIRED: 'phone-number-required',
PHONE_NUMBER_FORMAT: 'phone-number-format',
PHONE_NUMBER_FORMAT_SHORT: 'phone-number-format-short',
OPTION_REQUIRED: 'option-required'
});

View file

@ -45,13 +45,6 @@ function defineGlobalPhoneNumberRules() {
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
)
);
}
/**