Skip to content

Commit

Permalink
Updated Readme about not using "pattern:" in map but should use "regex;"
Browse files Browse the repository at this point in the history
  • Loading branch information
Grokzen committed Jun 7, 2014
1 parent 5a07919 commit 3dce4ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -96,11 +96,10 @@ enum:
pattern:
Specifies regular expression pattern of value. (Uses re.match() )
pattern rule works in map to validate keys, it is usefull when allowempty is set to True.
Pattern also works on all scalar types.
This will be matched against all keys in a map.
Pattern no longer works in map. Use regex;<regex-pattern> as keys in "mapping:"
regex;<regex pattern>:
regex;<regex-pattern>:
This is only implemented in map where a key inside the mapping keyword can implement this regex; pattern and all keys will be matched against the pattern.
If a match is found then it will parsed the subrules on that key. A single key can be matched against multiple regex rules and the normal map rules.
Expand Down

0 comments on commit 3dce4ac

Please sign in to comment.