From 0d16946aba8177f4f9fd89a081c554b669c93914 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Fri, 18 Aug 2023 13:25:18 +0200 Subject: [PATCH] v0.0.243 --- go.mod | 2 +- go.sum | 2 ++ goextVersion.go | 4 ++-- rext/wrapper.go | 6 ++++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 5e55af2..c404ae7 100644 --- a/go.mod +++ b/go.mod @@ -21,7 +21,7 @@ require ( github.com/gin-contrib/sse v0.1.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/go-playground/validator/v10 v10.15.0 // indirect + github.com/go-playground/validator/v10 v10.15.1 // indirect github.com/goccy/go-json v0.10.2 // indirect github.com/golang/snappy v0.0.4 // indirect github.com/json-iterator/go v1.1.12 // indirect diff --git a/go.sum b/go.sum index 996ca3e..13ff6ed 100644 --- a/go.sum +++ b/go.sum @@ -30,6 +30,8 @@ github.com/go-playground/validator/v10 v10.14.1 h1:9c50NUPC30zyuKprjL3vNZ0m5oG+j github.com/go-playground/validator/v10 v10.14.1/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/go-playground/validator/v10 v10.15.0 h1:nDU5XeOKtB3GEa+uB7GNYwhVKsgjAR7VgKoNB6ryXfw= github.com/go-playground/validator/v10 v10.15.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= +github.com/go-playground/validator/v10 v10.15.1 h1:BSe8uhN+xQ4r5guV/ywQI4gO59C2raYcGffYWZEjZzM= +github.com/go-playground/validator/v10 v10.15.1/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= diff --git a/goextVersion.go b/goextVersion.go index cc79826..8d55155 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.242" +const GoextVersion = "0.0.243" -const GoextVersionTimestamp = "2023-08-14T16:05:12+0200" +const GoextVersionTimestamp = "2023-08-18T13:25:18+0200" diff --git a/rext/wrapper.go b/rext/wrapper.go index 2c17601..2d4fae6 100644 --- a/rext/wrapper.go +++ b/rext/wrapper.go @@ -42,6 +42,7 @@ func W(rex *regexp.Regexp) Regex { // --------------------------------------------------------------------------------------------------------------------- +// IsMatch reports whether the string s contains any match of the regular expression re. func (w *regexWrapper) IsMatch(haystack string) bool { return w.rex.MatchString(haystack) } @@ -88,6 +89,11 @@ func (w *regexWrapper) GroupCount() int { return len(w.subnames) - 1 } +// String returns the source text used to compile the regular expression. +func (w *regexWrapper) String() string { + return w.rex.String() +} + // --------------------------------------------------------------------------------------------------------------------- func (m RegexMatch) FullMatch() RegexMatchGroup {