-
-
Save AngelCruzL/6a8ef42eb29f82d100cc68ca689f7daa to your computer and use it in GitHub Desktop.
Validadores usando expresiones regulares
This file contains hidden or 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 class Validators { | |
static get email() { | |
return /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment