If user enters in the input field 'company' or 'test' i want Yup to mark this as failed validation.
If user enter
companyThis
or*test*
(* === wild card), also want that to fail.
Can't seem to find that Yup has a method for this thing, so probably something custom?
Currently in Yup schema i have.
const schema = yup.object().shape({
username: yup
.string()
.min(4, 'User name to short')
.matches(/^[A-Za-z0-9]+$/, 'Only numbers and letters are allowed')
.required('Required'),
});