Closed nitriques closed 4 years ago
allowEmpty does not works as intended: it controls wether empty strings are allowed or not.
To make the empty string pass validation, we need to make it optional, by matching on either the pattern or an empty string.
allowEmpty does not works as intended: it controls wether empty strings are allowed or not.
To make the empty string pass validation, we need to make it optional, by matching on either the pattern or an empty string.