From e66c45d20399f1386aebf2ae568548adaa4ed531 Mon Sep 17 00:00:00 2001 From: JF Technology <57098161+jf-tech@users.noreply.github.com> Date: Sun, 22 Nov 2020 21:59:07 +1300 Subject: [PATCH] wording update for matchesFunc --- func.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/func.go b/func.go index f13f4d9..fd4187b 100644 --- a/func.go +++ b/func.go @@ -354,9 +354,9 @@ func containsFunc(arg1, arg2 query) func(query, iterator) interface{} { } } -// matchesFunc is an XPath function matches that tests a given string against a regexp pattern. -// Note: not support https://www.w3.org/TR/xpath-functions-31/#func-matches 3rd optional flags argument; if needed -// directly put the flags in pattern, such as 'i' (case-insensitive) by `(?i)^your pattern$` +// matchesFunc is an XPath function that tests a given string against a regexp pattern. +// Note: does not support https://www.w3.org/TR/xpath-functions-31/#func-matches 3rd optional `flags` argument; if +// needed, directly put flags in the regexp pattern, such as `(?i)^pattern$` for `i` flag. func matchesFunc(arg1, arg2 query) func(query, iterator) interface{} { return func(q query, t iterator) interface{} { var s string