Skip to content

Commit 3438780

Browse files
committed
Fix parsing both pairs and options
1 parent 684c5e5 commit 3438780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/com/handlebarsjs/HandlebarsParser.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function options($tag) {
7272
$token= substr($tag, $o + 1, $p - 1);
7373
$p++;
7474
} else {
75-
$p= strcspn($tag, $key ? '=' : ' =', $o);
75+
$p= strcspn($tag, $key ? ' ' : ' =', $o);
7676
$token= substr($tag, $o, $p);
7777
}
7878

0 commit comments

Comments
 (0)