Skip to content

Commit

Permalink
III-5817 - Modify regex to accept ageRanges likes "-" and "18-"
Browse files Browse the repository at this point in the history
  • Loading branch information
brampauwelyn committed Oct 12, 2023
1 parent 9250c60 commit dc1458a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/steps/NameAndAgeRangeStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
StepsConfiguration,
} from './Steps';

const numberHyphenNumberRegex = /^\d+-\d+$/;
const numberHyphenNumberRegex = /^(\d*-)?\d*$/;

const useEditNameAndAgeRange = ({
scope,
Expand Down

0 comments on commit dc1458a

Please sign in to comment.