v0.0.243
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m18s
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 1m18s
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user