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