Last active
December 12, 2015 07:48
-
-
Save davetayls/4739206 to your computer and use it in GitHub Desktop.
Person name validation examples
http://stackoverflow.com/questions/888838/regular-expression-for-validating-names-and-surnames
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
given([ | |
"1234", | |
"^", | |
"<xss>", | |
"^", | |
",", | |
"' --", | |
"\"" | |
]) | |
.it('the name should be invalid', function(name){ | |
}); | |
given([ | |
"Hello World", | |
"John", | |
"João", | |
"タロウ", | |
"やまだ", | |
"山田", | |
"先生", | |
"мыхаыл", | |
"Θεοκλεια", | |
"आकाङ्क्षा", | |
"علاء الدين", | |
"אַבְרָהָם", | |
"മലയാളം", | |
"상", | |
"D'Addario", | |
"John-Doe", | |
"P.A.M." | |
]) | |
.it('the name should be valid', function(name){ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment