comanche: simple test issue

This commit is contained in:
redmatrix 2016-09-08 16:54:22 -07:00
parent d63cfb41f1
commit abaf752a9b

View file

@ -124,7 +124,6 @@ class Comanche {
}
function test_condition($s) {
// This is extensible. The first version of variable testing supports tests of the forms:
// [if $config.system.foo == baz] which will check if get_config('system','foo') is the string 'baz';
// [if $config.system.foo != baz] which will check if get_config('system','foo') is not the string 'baz';
@ -161,7 +160,7 @@ class Comanche {
return false;
}
if(preg_match('/[\$](.*?)/',$s,$matches)) {
if(preg_match('/[\$](.*?)$/',$s,$matches)) {
$x = $this->get_condition_var($matches[1]);
if($x)
return true;