Browse Source

Changes to handling of missing end patterns

main
Dustin Wilson 2 years ago
parent
commit
8370b9368c
  1. 2
      lib/Grammar.php

2
lib/Grammar.php

@ -135,7 +135,7 @@ class Grammar {
// which is used to exit matching.
if (isset($pattern['begin'])) {
if (!isset($pattern['end'])) {
throw new Exception(Exception::JSON_MISSING_PROPERTY, $filename, 'end');
$pattern['end'] = '\z';
}
$modified = true;

Loading…
Cancel
Save