Created
December 7, 2022 14:40
-
-
Save candraKriswinarto/b397cf5c503e6f7969b5784a2840293c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const addErrorIntoField = (errors) => errors ? { error: true } : { error: false }; | |
export const phoneRegExp = /^(\+?\d{0,4})?\s?-?\s?(\(?\d{3}\)?)\s?-?\s?(\(?\d{3}\)?)\s?-?\s?(\(?\d{4}\)?)?$/; | |
export const pawdRegExp = /^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$/; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment