mirror of
https://github.com/Respect/Validation.git
synced 2024-06-22 07:16:32 +02:00
Readme
This commit is contained in:
parent
9b0d85eadf
commit
2ae997f586
|
@ -70,7 +70,7 @@ h3. Cool, informative exceptions:
|
|||
|
||||
<pre>try {
|
||||
$username = '#$% #odjfubgihdbfgihbdfighb';
|
||||
$validUsername = v::alnum()
|
||||
$validUsername = v::alnum('_')
|
||||
->noWhitespace()
|
||||
->stringLength(1,15)
|
||||
->assert($username);
|
||||
|
|
Loading…
Reference in a new issue