From c3e0a61a3e6df1236375319cd670649568b9b1cc Mon Sep 17 00:00:00 2001 From: FlorentGouyon <49064522+FlorentGouyon@users.noreply.github.com> Date: Thu, 21 Mar 2024 16:29:52 +0100 Subject: [PATCH] feat: regex fix for multiple IPP list - Ref gestion-de-projet#2458 * feat: regex fix for multiple IPP list - Ref gestion-de-projet#2458 --- .../components/CriteriaRightPanel/IPPForm/IPPForm.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/IPPForm/IPPForm.tsx b/src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/IPPForm/IPPForm.tsx index 193fee363..51e6c9c11 100644 --- a/src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/IPPForm/IPPForm.tsx +++ b/src/components/CreationCohort/DiagramView/components/LogicalOperator/components/CriteriaRightPanel/IPPForm/IPPForm.tsx @@ -45,8 +45,7 @@ const IPPForm: React.FC = (props) => { } useEffect(() => { - const ippMatches = (defaultValues.search || '').matchAll(/(?:^|\D+)*(8\d{9})(?:\D+|$)/gm) || [] - + const ippMatches = (defaultValues.search || '').matchAll(/(?:^|\D+)?(8\d{9})(?:$|\D+)/gm) || [] const ippList = [] for (const match of ippMatches) {