filepathfilter: implement String() on *simpleExtPattern
This commit is contained in:
parent
f2c9927f6a
commit
170a74f991
@ -179,6 +179,12 @@ func (p *simpleExtPattern) Match(name string) bool {
|
||||
return strings.HasSuffix(name, p.ext)
|
||||
}
|
||||
|
||||
// String returns a string representation of the underlying pattern for which
|
||||
// this *simpleExtPattern is matching.
|
||||
func (p *simpleExtPattern) String() string {
|
||||
return fmt.Sprintf("*%s", p.ext)
|
||||
}
|
||||
|
||||
type pathlessWildcardPattern struct {
|
||||
rawPattern string
|
||||
wildcardRE *regexp.Regexp
|
||||
|
Loading…
Reference in New Issue
Block a user