v0.0.243
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m18s

This commit is contained in:
2023-08-18 13:25:18 +02:00
parent 14441c2378
commit 0d16946aba
4 changed files with 11 additions and 3 deletions

View File

@@ -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 {