From 34387800c3eab5b8e44ff053820cc4ca2d3e1986 Mon Sep 17 00:00:00 2001 From: Timm Friebe Date: Sun, 22 Oct 2023 22:15:00 +0200 Subject: [PATCH] Fix parsing both pairs and options --- src/main/php/com/handlebarsjs/HandlebarsParser.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/php/com/handlebarsjs/HandlebarsParser.class.php b/src/main/php/com/handlebarsjs/HandlebarsParser.class.php index 79f4d3e..1243b62 100755 --- a/src/main/php/com/handlebarsjs/HandlebarsParser.class.php +++ b/src/main/php/com/handlebarsjs/HandlebarsParser.class.php @@ -72,7 +72,7 @@ public function options($tag) { $token= substr($tag, $o + 1, $p - 1); $p++; } else { - $p= strcspn($tag, $key ? '=' : ' =', $o); + $p= strcspn($tag, $key ? ' ' : ' =', $o); $token= substr($tag, $o, $p); }