-
Notifications
You must be signed in to change notification settings - Fork 309
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
buildBinding regex breaks with multiple strings #620
Comments
Damn, didn't see that 😞 |
I came up with the same regex issues with the empty spaces. Would recommend not using filter as for loop would work quicker (don't think the extra checks filter runs are needed here) |
I agree, the code is work in progress. I hoped someone could help to find THE regexp ;-) |
How about:
|
Looks great! |
@Leeds-eBooks This issues probably justifies a 0.9.1 release (as it might break other peoples apps like mine)? |
|
Excellent! Thanks |
@Leeds-eBooks FYI I have also created a ES6 fix (PR #626) as well (also had to fix up the testing framework in PR #625) |
Great ! Thanks ! |
This is broken in 0.9 (fixed as part of #432)
/((?:'[^']*')*(?:(?:[^\|']+(?:'[^']*')*[^\|']*)+|[^\|]+))|^$/g
This breaks for the following example (not picking up the 2nd string):
receiptTypeId | lookup reciptTypes 'value' 'key'
I'm trying to come up with a working regex but I'm not great at regex!
The text was updated successfully, but these errors were encountered: