Skip to content

Conversation

@paddymul
Copy link
Contributor

No description provided.

@codesandbox
Copy link

codesandbox bot commented Jan 24, 2023

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

Comment on lines -302 to -307
validate: (value) => {
const ensureMaxLength = validateMaxLength(50)(value);
const ensureValidChars = validateRegex(/[\w-_]+/g)(value);

return runValidations(ensureMaxLength, ensureValidChars);
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These validate functions are repitious. We combined them with the new argument named validateFuncs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant