Skip to content

Commit

Permalink
Fix ternary operator bug (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manawyrm authored and feulf committed Oct 4, 2019
1 parent edee683 commit d98ffec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Rain/Tpl/Parser.php
Expand Up @@ -78,7 +78,7 @@ class Parser {
'({function.*?})',
'/{function="([a-zA-Z_][a-zA-Z_0-9\:]*)(\(.*\)){0,1}"}/'
),
'ternary' => array('({.[^{?]*?\?.*?\:.*?})', '/{(.[^{?]*?)\?(.*?)\:(.*?)}/'),
'ternary' => array('({.[^{?}]*?\?.*?\:.*?})', '/{(.[^{?}]*?)\?(.*?)\:(.*?)}/'),
'variable' => array('({\$.*?})', '/{(\$.*?)}/'),
'constant' => array('({#.*?})', '/{#(.*?)#{0,1}}/'),
);
Expand Down

0 comments on commit d98ffec

Please sign in to comment.