Checked with Janet after card comment, update to policy zip validation

This commit is contained in:
Bill Richardson 2024-02-16 15:24:16 -05:00
parent 3ba5bee4a9
commit 6d4ef19496

View file

@ -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)
);
}