Created
September 15, 2023 16:38
-
-
Save Klerith/2184f4332b4047c3aed771f34440e16f 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