Skip to content

Commit

Permalink
fix #134, but feature detection count still wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
Zordius Chen committed Feb 4, 2015
1 parent b7dfb0f commit 3d9a557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lightncandy.php
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,7 @@ protected static function parseTokenArgs(&$token, &$context) {
foreach ($vars as $idx => $var) {
// Skip advanced processing for subexpressions
if (preg_match(static::IS_SUBEXP_SEARCH, $var)) {
static::compileSubExpression($var, $context);
$ret[$i] = array($var);
$i++;
continue;
Expand Down
2 changes: 1 addition & 1 deletion tests/regressionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ public function issueProvider()
Array(
'id' => 134,
'template' => "{{#if 1}}{{list (keys ../names)}}{{/if}}",
'data' => Array('foo' => 'bar', 'test' => 'ok'),
'data' => Array('names' => Array('foo' => 'bar', 'test' => 'ok')),
'options' => Array(
'flags' => LightnCandy::FLAG_HANDLEBARSJS,
'helpers' => Array(
Expand Down

0 comments on commit 3d9a557

Please sign in to comment.