From 9efffeac37201c8dbd5db7d6e695251a752c2404 Mon Sep 17 00:00:00 2001 From: Dmitri Korin Date: Tue, 24 Dec 2024 11:58:31 -0800 Subject: [PATCH] =?UTF-8?q?Increase=20input=20lenght,=20allow=20=E2=80=98-?= =?UTF-8?q?'=20and=20'/=E2=80=99=20characters=20in=20the=20authorization?= =?UTF-8?q?=20number=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../authorization-outcome/authorization-outcome-form.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/containers/complaints/outcomes/ceeb/authorization-outcome/authorization-outcome-form.tsx b/frontend/src/app/components/containers/complaints/outcomes/ceeb/authorization-outcome/authorization-outcome-form.tsx index 29e35ae48..5fae4256d 100644 --- a/frontend/src/app/components/containers/complaints/outcomes/ceeb/authorization-outcome/authorization-outcome-form.tsx +++ b/frontend/src/app/components/containers/complaints/outcomes/ceeb/authorization-outcome/authorization-outcome-form.tsx @@ -61,8 +61,8 @@ export const AuthoizationOutcomeForm: FC = ({ 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; } @@ -146,7 +146,7 @@ export const AuthoizationOutcomeForm: FC = ({ id, type, value, leadIdenti inputClass="comp-form-control" value={authorized} error={authorizedErrorMessage} - maxLength={10} + maxLength={20} onChange={(evt: any) => { const { target: { value },