vtils

Home > validator > yup > StringSchema > matches

yup.StringSchema.matches() method

Signature:

matches(regex: RegExp, message?: StringLocale['matches']): this;

Parameters

Parameter Type Description
regex RegExp  
message StringLocale[‘matches’] (Optional)

Returns:

this