From 3dce4ac96e1e2ddda2180d441dab20bb85b48f00 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sat, 7 Jun 2014 21:19:31 +0200 Subject: [PATCH] Updated Readme about not using "pattern:" in map but should use "regex;" --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c77eab3..fa932ec 100644 --- a/README.md +++ b/README.md @@ -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; as keys in "mapping:" -regex;: +regex;: 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.