You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2022. It is now read-only.
Can we be able to override the specific validation error message by a other message.
For example: username: s.optional(s.regex(/^(?=.*[a-z])[1-9a-z][0-9a-z]{3,19}$/i))
change to : username: s.optional(s.regex(/^(?=.*[a-z])[1-9a-z][0-9a-z]{3,19}$/i, message:'Please follow this rules for your username: Alphanumeric characters only, maximum of 20 characters, minimum of 4 characters, at least one letter, first character cannot be 0, whitespace is not allowed'))