(other Pattern)
| 102 | } |
| 103 | |
| 104 | func (p pattern) Includes(other Pattern) bool { |
| 105 | otherParts := split(other.String()) |
| 106 | patternParts := split(string(p)) |
| 107 | |
| 108 | return match(patternParts, otherParts) |
| 109 | } |
| 110 | |
| 111 | func (p pattern) String() string { |
| 112 | return string(p) |