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); }