This commit is contained in:
Alexandre Gomes Gaigalas 2010-09-27 19:14:07 -03:00
parent 9b0d85eadf
commit 2ae997f586

View file

@ -70,7 +70,7 @@ h3. Cool, informative exceptions:
<pre>try {
$username = '#$% #odjfubgihdbfgihbdfighb';
$validUsername = v::alnum()
$validUsername = v::alnum('_')
->noWhitespace()
->stringLength(1,15)
->assert($username);