v1.9.2
FIX: * Yeah so the ReMap.Map* stuff was kind of broken hard. It's fixed now.
This commit is contained in:
@@ -4,7 +4,20 @@ import (
|
||||
`regexp`
|
||||
)
|
||||
|
||||
// ReMap provides some map-related functions around a regexp.Regexp.
|
||||
type ReMap struct {
|
||||
*regexp.Regexp
|
||||
}
|
||||
type (
|
||||
// ReMap provides some map-related functions around a regexp.Regexp.
|
||||
ReMap struct {
|
||||
*regexp.Regexp
|
||||
}
|
||||
|
||||
/*
|
||||
ExplicitStringMatch is used with ReMap.MapStringExplicit to indicate if a
|
||||
capture group result is a hit (a group matched, but e.g. the match value is empty string)
|
||||
or not (a group did not match)
|
||||
*/
|
||||
ExplicitStringMatch struct {
|
||||
Group string
|
||||
IsMatch bool
|
||||
Value string
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user