I'm using a simple Yup schema like this to validate a Formik input field in React Native:
Yup.number().positive()
My users are going to use the comma separator for decimals, so I need the schema to throw an error for values such as 1.35 and accept values like 1,35. Using a regex seems off the table as the matches method is only available for strings.