-
-
Notifications
You must be signed in to change notification settings - Fork 8
Modified regex for using floating point numbers in comparison #17
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
base: master
Are you sure you want to change the base?
Conversation
|
The fix given here will break the string comparisons which is not correct. So closing the PR. |
|
I will give better fix for integers, floating numbers and string comparisons |
d6fe49f to
a908622
Compare
|
You're gonna need to include tests. |
a908622 to
53406ac
Compare
|
I have added the test cases too. Please do the needful. |
1 similar comment
|
I have added the test cases too. Please do the needful. |
53406ac to
379ddac
Compare
|
I have fixed the test case which was throwing error. Please look into this and do the needful. |
|
Don't rewrite tests to fit the bug you introduced. By turning a regex designed to match nonnumeric data into one that matches floats, you broke proper variable parsing. The test was correct and used the dot notation to get string size as documented here: https://shopify.github.io/liquid/filters/size/. Btw, I could do without the 40+ emails from you and your colleagues over the last 7 days; I do not work for Exceleron. |
…o added test cases
379ddac to
2edabc7
Compare
|
Apologies for the inconvenience caused but we are just trying to fix the actual issue to improve the module. We found one more usecase that was failing. So we have given the fix for that too. Usecase :
|
|
I have added the test cases too sir. Please merge.
Thanks & Regards
Yozna H. Sarda
Product Developer
***@***.*** | 9909975606
…On Thu, Sep 15, 2022 at 9:08 PM Sanko Robinson ***@***.***> wrote:
You're gonna need to include tests.
—
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXVI2HY7EOSREQ75ZNDWJATV6M7GFANCNFSM6AAAAAAQKOOITI>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
In If condition, while comparing floating numbers, comparison was failing. Fixed the issue.