-
Notifications
You must be signed in to change notification settings - Fork 354
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
bugfix: patternProperties raised errors when the pattern has slashes #194
bugfix: patternProperties raised errors when the pattern has slashes #194
Conversation
@ribeiropaulor please rebase on master. Thanks for adding the tests. |
…ash. Now the delimiter to evaluate the regex is chosen dynamically.
…rn contained slash.
1f62a72
to
7099ef0
Compare
rebased! |
$matches = array(); | ||
foreach ($patternProperties as $pregex => $schema) { | ||
// Choose delimiter. Necessary for patterns like ^/ , otherwise you get error | ||
foreach ($try as $delimiter) { |
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.
$delimiter
should be defined and defaulted to a sensible value before this loop. Otherwise, $delimiter
is only defined per the loop and will be set the last value if nothing breaks the loop.
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.
done!
should be good to merge |
+1 |
bugfix: patternProperties raised errors when the pattern has slashes
Now the delimiter to evaluate the regex is chosen dynamically.