We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HI, all! I got the following code:
package main import ( "log" "github.com/gobwas/glob" ) func main() { pattern := "start*art" gl := glob.MustCompile(pattern) s := "start" log.Printf("Result: %v", gl.Match(s)) }
Which results in:
$ ./main 2023/08/01 16:20:08 Result: true
I expect it to be false. Is this a bug?
false
The text was updated successfully, but these errors were encountered:
I checked it against filepath.Match function:
filepath.Match
package main import ( "log" "path/filepath" "github.com/gobwas/glob" ) func main() { pattern := "start*art" gl := glob.MustCompile(pattern) s := "start" log.Printf("glob result: %v", gl.Match(s)) matched, err := filepath.Match(pattern, s) if err != nil { log.Fatalf("failed to match: %v", err) } log.Printf("filepath.Match result: %v", matched) }
Result:
$ ./main 2023/08/01 16:58:00 glob result: true 2023/08/01 16:58:00 filepath.Match result: false
It seems like a bug...
Sorry, something went wrong.
No branches or pull requests
HI, all!
I got the following code:
Which results in:
I expect it to be
false
. Is this a bug?The text was updated successfully, but these errors were encountered: