We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7099ef0 commit 2ba8f95Copy full SHA for 2ba8f95
src/JsonSchema/Constraints/ObjectConstraint.php
@@ -45,6 +45,7 @@ public function validatePatternProperties($element, $path, $patternProperties)
45
$try = array('/','#','+','~','%');
46
$matches = array();
47
foreach ($patternProperties as $pregex => $schema) {
48
+ $delimiter = '/';
49
// Choose delimiter. Necessary for patterns like ^/ , otherwise you get error
50
foreach ($try as $delimiter) {
51
if (strpos($pregex, $delimiter) === false) { // safe to use
0 commit comments