From dc1458a8c841150afba8b503fe8f470c995434a9 Mon Sep 17 00:00:00 2001 From: Bram Pauwelyn Date: Thu, 12 Oct 2023 08:55:29 +0200 Subject: [PATCH] III-5817 - Modify regex to accept ageRanges likes "-" and "18-" --- src/pages/steps/NameAndAgeRangeStep.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/steps/NameAndAgeRangeStep.tsx b/src/pages/steps/NameAndAgeRangeStep.tsx index 2c45fb609..32f2fbca3 100644 --- a/src/pages/steps/NameAndAgeRangeStep.tsx +++ b/src/pages/steps/NameAndAgeRangeStep.tsx @@ -19,7 +19,7 @@ import { StepsConfiguration, } from './Steps'; -const numberHyphenNumberRegex = /^\d+-\d+$/; +const numberHyphenNumberRegex = /^(\d*-)?\d*$/; const useEditNameAndAgeRange = ({ scope,