Skip to content

Commit

Permalink
Merge pull request #37 from piotrjura/datetime-email-expander
Browse files Browse the repository at this point in the history
Added missing documentation for isDateTime and isEmail
  • Loading branch information
norberttech committed Nov 4, 2014
2 parents 714542a + c3583a2 commit 335b31d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ $match = $matcher->match("lorem ipsum dolor", "@string@")
* ``@*@`` || ``@wildcard@``
* ``expr(expression)``

### Available pattern exapanders
### Available pattern expanders

* ``startsWith($stringBeginning, $ignoreCase = false)``
* ``endsWith($stringEnding, $ignoreCase = false)``
* ``contains($string, $ignoreCase = false)``
* ``isDateTime()``
* ``isEmail()``
* ``notEmpty()``
* ``lowerThan($boundry)``
* ``greaterThan($boundry)``
Expand Down Expand Up @@ -254,6 +256,7 @@ $matcher->match(
{
"firstName": "Norbert",
"lastName": "Orzechowicz",
"created": "2014-01-01",
"roles":["ROLE_USER", "ROLE_DEVELOPER"]}
]
}',
Expand All @@ -262,6 +265,7 @@ $matcher->match(
{
"firstName": @string@,
"lastName": @string@,
"created": "@[email protected]()",
"roles": @array@
}
]
Expand Down

0 comments on commit 335b31d

Please sign in to comment.