Last active
August 5, 2025 12:35
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
// Check whether email is somewhat valid (HTML5 input type=email) | |
/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+?@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/ | |
// Valid JS identifier | |
/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}]*/u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment