vendor: Update gobwas/glob to fix question mark handling

This commit is contained in:
Jakob Borg
2016-10-23 15:47:31 +02:00
parent 7c37301c91
commit 4b3adfa21c
3 changed files with 36 additions and 12 deletions

View File

@@ -45,12 +45,11 @@ func (self Row) lenOk(s string) bool {
var i int
for _ = range s {
i++
if i >= self.RunesLength {
return true
if i > self.RunesLength {
return false
}
}
return false
return self.RunesLength == i
}
func (self Row) Match(s string) bool {
@@ -62,21 +61,14 @@ func (self Row) Len() (l int) {
}
func (self Row) Index(s string) (int, []int) {
if !self.lenOk(s) {
return -1, nil
}
for i := range s {
// this is not strict check but useful
if len(s[i:]) < self.RunesLength {
break
}
if self.matchAll(s[i:]) {
return i, self.Segments
}
}
return -1, nil
}

2
vendor/manifest vendored
View File

@@ -134,7 +134,7 @@
{
"importpath": "github.com/gobwas/glob",
"repository": "https://github.com/gobwas/glob",
"revision": "ce6abff51712df5da11095fb41dd4b0353559797",
"revision": "0354991b92587e2742549d3036f3b5bae5ab03f2",
"branch": "master",
"notests": true
},