Checked with Janet after card comment, update to policy zip validation
This commit is contained in:
parent
3ba5bee4a9
commit
6d4ef19496
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ function defineGlobalPolicyZipCodeRules() {
|
|||
defineRule(globalRules.POLICY_ZIP_REQUIRED, required(errorMessages.POLICY_ZIP_REQUIRED));
|
||||
defineRule(
|
||||
globalRules.POLICY_ZIP_FORMAT,
|
||||
regex(/(^\d{5}$)|(^\d{5}-\d{4}$)/, errorMessages.POLICY_ZIP_FORMAT)
|
||||
regex(/^\d{5}$/, errorMessages.POLICY_ZIP_FORMAT)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue