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
JsonType: Allow to use : in regex filter #5273
Conversation
Looks good to me but I don't understand what's happening there 😛 |
I'll get comments in tonight. |
Looks like wercker/build stuff needs to fixed. |
I tried to match time with Here is the output I got:
I would like to see the actual pattern instead of This issue was visible in my failed attempt to create failing test: https://travis-ci.org/Codeception/Codeception/jobs/467890679
|
Doesn't everyone know what $$0 is? 😂 I'll look when I get home. It'll probably be a case of just having to create a second array of the original, before the replacements. Other than that, another way to kill off these issues would invlove rewriting the "API" to look like 'Array Key' => ['type' => string, 'filter' => ['regex'=> '/.*/']] |
It should be enough to use a different variable instead of |
back in with the regex pattern.
OK - so there actually was an issue with the regex I was using which prematurely stopped on that example you gave (Which I had a pattern I wrote during the last commit that I thought was overkill, but I guess it wasn't). I also had to just replace the $$\d+ in the type. Reason for this was because of the split on | and the split on : would have still caused some issues if I had just used a second variable for the regexes. I also did some fixes around PHP Inspections (EA Extended) suggestions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me now.
Fixes #2501
Fixes regex filter handling in Util\JsonType