Skip to content

Commit

Permalink
--fix Ternary regex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adambalint-srg committed Apr 5, 2017
1 parent 4f27396 commit 68d9a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Rain/Tpl/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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 68d9a4f

Please sign in to comment.