filepathfilter: implement String() on *pathPrefixPattern
This commit is contained in:
parent
170a74f991
commit
0651b22936
@ -148,6 +148,12 @@ func (p *pathPrefixPattern) Match(name string) bool {
|
||||
return matched
|
||||
}
|
||||
|
||||
// String returns a string representation of the underlying pattern for which
|
||||
// this *pathPrefixPattern is matching.
|
||||
func (p *pathPrefixPattern) String() string {
|
||||
return p.rawPattern
|
||||
}
|
||||
|
||||
type pathPattern struct {
|
||||
rawPattern string
|
||||
prefix string
|
||||
|
Loading…
Reference in New Issue
Block a user