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
PrefixSuffix.Match
The PrefixSuffix.Match doesn't consider the condition that the prefix overlaps with the suffix. version: v0.2.3 POC:
v0.2.3
func main() { g, _ := glob.Compile("a*ant") fmt.Println(g.Match("an ant")) // true EXPECTED fmt.Println(g.Match("ant")) // true UNEXPECTED g, _ = glob.Compile("br*r") fmt.Println(g.Match("brother")) // true EXPECTED fmt.Println(g.Match("br")) // true UNEXPECTED g, _ = glob.Compile("so*so") fmt.Println(g.Match("so so")) // true EXPECTED fmt.Println(g.Match("so")) // true UNEXPECTED }
The text was updated successfully, but these errors were encountered:
Hey @Chrstm can you check it against the v0.3 branch?
Sorry, something went wrong.
I checked. The result of feature/v0.3 is the same as v0.2.3. It still compile the pattern as a PrefixSuffix matcher.
feature/v0.3
PrefixSuffix
Fix: gobwas#51
76ff31a
No branches or pull requests
The
PrefixSuffix.Match
doesn't consider the condition that the prefix overlaps with the suffix.version:
v0.2.3
POC:
The text was updated successfully, but these errors were encountered: