From 8370b9368c10f62f8d3bbfd74e1a36817dfd1749 Mon Sep 17 00:00:00 2001 From: Dustin Wilson Date: Mon, 7 Feb 2022 16:58:01 -0600 Subject: [PATCH] Changes to handling of missing end patterns --- lib/Grammar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Grammar.php b/lib/Grammar.php index eacb0e1..2b6ecbf 100644 --- a/lib/Grammar.php +++ b/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;