forked from mirror/glob
This commit is contained in:
parent
6cb2c11fd7
commit
ea3a6f712d
|
@ -87,11 +87,11 @@ func (self BTree) Match(s string) bool {
|
|||
// defer func() {
|
||||
// releaseSegments(segments)
|
||||
// }()
|
||||
var segments []int
|
||||
// var segments []int
|
||||
|
||||
for offset < limit {
|
||||
// search for matching part in substring
|
||||
index, segments := self.Value.Index(s[offset:limit], segments[:0])
|
||||
index, segments := self.Value.Index(s[offset:limit], nil)
|
||||
if index == -1 {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue