Skip to content

Commit

Permalink
Fix parsing both pairs and options
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Oct 22, 2023
1 parent 684c5e5 commit 3438780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/com/handlebarsjs/HandlebarsParser.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 3438780

Please sign in to comment.