-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from piotrjura/datetime-email-expander
Added missing documentation for isDateTime and isEmail
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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)`` | ||
|
@@ -254,6 +256,7 @@ $matcher->match( | |
{ | ||
"firstName": "Norbert", | ||
"lastName": "Orzechowicz", | ||
"created": "2014-01-01", | ||
"roles":["ROLE_USER", "ROLE_DEVELOPER"]} | ||
] | ||
}', | ||
|
@@ -262,6 +265,7 @@ $matcher->match( | |
{ | ||
"firstName": @string@, | ||
"lastName": @string@, | ||
"created": "@[email protected]()", | ||
"roles": @array@ | ||
} | ||
] | ||
|