From d5ad0282f929021786605253b39cc529e6c15b99 Mon Sep 17 00:00:00 2001 From: spacewander Date: Tue, 18 Aug 2020 17:54:11 +0800 Subject: [PATCH] doc: update the status of match_pattern function. Close #7. --- README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 043db95..4636da8 100644 --- a/README.md +++ b/README.md @@ -73,11 +73,9 @@ local v = jsonschema.generate_validator(schema, { -- defaults to `cjson.null` (if available) or `nil` null = null_token, - -- function called to match patterns, defaults to string.find. - -- The JSON schema specification mentions that the validator should obey - -- the ECMA-262 specification but Lua pattern matching library is much more - -- primitive than that. Users might want to use PCRE or other more powerful - -- libraries here + -- function called to match patterns, defaults to `ngx.re.find` in OpenResty + -- or `rex.find` from lrexlib-pcre on other occassions. + -- The pattern given here will obey the ECMA-262 specification. match_pattern = function(string, patt) return ... -- boolean value end,