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
wildcard: Fix wildcard match behavior to support wide range. #7
Conversation
This helps in supporting all types of patterns in wildcard match.
@tidwall - 'wildcard' match treats the input string as flat here. Let me know what you think about this. |
@harshavardhana Thanks for the PR. What do you mean by wide range and all types of patterns? Is there a bug in the current implementation? |
Yes there are cases where the current implementation doesn't work, you can use the current code against the range of tests submitted to see why they fail. |
For example
BTW Note this PR does a flat key match (i.e delimiters like / are not treated specially), so i am wondering if that is what you are expecting? |
Other simplified version of strings which fail with current implementation.
|
I'm not seeing the same issue on my side. I created a branch named Could you check it on your side? |
Will do thanks @tidwall |
@tidwall looks like you are right.. must be some problem on my end. when i changed the argument order. Let me rip off my implementation and just submit those tests.. ? what do you think? |
Sounds good. Thanks. |
Actually, I can merge your changes locally and strip off the code, then merge it to master. I don't think you need to do anything. |
I just added your test to the gjson_test.go file. |
Thanks @tidwall |
You're welcome and thanks a ton for supporting the project. |
This is great work does a big win for us @minio |
Sweet! Your team is making some pretty cool stuff over there. |
This helps in supporting all types of patterns in wildcard match.