Skip to content
New issue

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

double star at end match #38

Open
elvizlai opened this issue Oct 27, 2021 · 1 comment
Open

double star at end match #38

elvizlai opened this issue Oct 27, 2021 · 1 comment

Comments

@elvizlai
Copy link

Is this the match bug when double start ends?

// should this be true? but the result is false
fmt.Println(zglob.Match(`/**`, `/abc/def/123`))

and for example, the result are all true, matching seems not difference when ending with star.

fmt.Println(zglob.Match(`/*`, `/abc.txt`))
fmt.Println(zglob.Match(`/**`, `/abc.txt`))
@aminya
Copy link

aminya commented Nov 4, 2022

I am having similar problems. It seems the library is not validated for all the cases.

For example, these two return different results:

"{dev/**/*,something}"
"{something,dev/**/*}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants