Skip to content

Commit

Permalink
Increase input lenght, allow ‘-' and '/’ characters in the authorizat…
Browse files Browse the repository at this point in the history
…ion number field
  • Loading branch information
dmitri-korin-bcps committed Dec 24, 2024
1 parent 31b73ae commit 9efffea
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export const AuthoizationOutcomeForm: FC<props> = ({ id, type, value, leadIdenti
return false;
}

if (!authorized.match(/^\d{1,10}$/) && !unauthorized) {
setAuthorizedErrorMessage("Invalid format. Please only include numbers.");
if (!authorized.match(/^[\d-/]{1,20}$/) && !unauthorized) {
setAuthorizedErrorMessage("Invalid format. Please only include numbers and ‘-' and '/’ characters.");
return false;
}

Expand Down Expand Up @@ -146,7 +146,7 @@ export const AuthoizationOutcomeForm: FC<props> = ({ id, type, value, leadIdenti
inputClass="comp-form-control"
value={authorized}
error={authorizedErrorMessage}
maxLength={10}
maxLength={20}
onChange={(evt: any) => {
const {
target: { value },
Expand Down

0 comments on commit 9efffea

Please sign in to comment.