Changes to handling of missing end patterns

This commit is contained in:
Dustin Wilson 2022-02-07 16:58:01 -06:00
parent 3e07ac45af
commit 8370b9368c

View file

@ -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;