Skip to content

Commit

Permalink
feat: regex fix for multiple IPP list - Ref gestion-de-projet#2458
Browse files Browse the repository at this point in the history
* feat: regex fix for multiple IPP list - Ref gestion-de-projet#2458
  • Loading branch information
FlorentGouyon authored Mar 21, 2024
1 parent 3c2fba4 commit c3e0a61
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ const IPPForm: React.FC<CriteriaDrawerComponentProps> = (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) {
Expand Down

0 comments on commit c3e0a61

Please sign in to comment.