Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

rxact 6 number long in yup validation

Yup.string()
.required()
.matches(/^[0-9]+$/, "Must be only digits")
.min(5, 'Must be exactly 5 digits')
.max(5, 'Must be exactly 5 digits')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rxact #number #long #yup #validation
ADD COMMENT
Topic
Name
9+7 =