glob icon indicating copy to clipboard operation
glob copied to clipboard

Go glob

Results 34 glob issues
Sort by recently updated
recently updated
newest added

This bug occurs when the glob.Glob has a matcher which is empty and its length is 0. In detail, the crash locates in `glob/match/raw.go:(self Row) matchAll(s string) bool`: ```go func...

When matching a row we calculate an index into the string, and this index was in runes. However when slicing the string Go uses byte indexes. This change tracks both,...

When there's a non-ASCII rune adjacent to a wildcard or at the end of a pattern, the matcher fails. Adding these test cases, the marked ones fail: ``` glob(true, "155ö",...

This glob library is used for a critical bit of functionality in [Telegraf](https://github.com/influxdata/telegraf) -[metric filtering](https://github.com/influxdata/telegraf/blob/master/docs/CONFIGURATION.md#metric-filtering). There appear to be a number of cases where it silently fails to match, and...

The `PrefixSuffix.Match` doesn't consider the condition that the prefix overlaps with the suffix. version: `v0.2.3` POC: ```go func main() { g, _ := glob.Compile("a*ant") fmt.Println(g.Match("an ant")) // true EXPECTED fmt.Println(g.Match("ant"))...

travis-ci.org is deprecated

Really minor, but very useful. I would also really appreciate a new v0.2.4 tag :)

I have a string say, `abchello`. I would like to match something `bcdhello`. i could write something like this `!a!b!chello`. Now if i write this , it doesnot match `hbhhello`....

As was already discussed in https://github.com/gobwas/glob/issues/20, patterns containing `**/*` may lead to unexpected results for most users. After porting https://github.com/goreleaser/nfpm to `glob`, this was reported as a regression (https://github.com/goreleaser/nfpm/issues/256). Currently,...

Hi, great library you have here! We are building a file globbing library (https://github.com/goreleaser/fileglob) on top of `glob` which required us to write some helper functions that operate on `glob/syntax/ast`....