diff --git a/www/res/scripts/luaToPhp.php b/www/res/scripts/luaToPhp.php index 537b3c7..d66cc16 100755 --- a/www/res/scripts/luaToPhp.php +++ b/www/res/scripts/luaToPhp.php @@ -33,7 +33,7 @@ function trimval($str) $str = trim($str); // Evaluated numbers used in fire rates like '10/10' - if (preg_match('/^((?:[0-9\.]+\w*[\/+-]\w*)*[0-9\.]+),?$/', $str, $matches)) + if (preg_match('/^((?:[0-9\.]+\w*[\*\/+-]\w*)*[0-9\.]+),?$/', $str, $matches)) { eval('$str = ' . $matches[1] . ';'); return (float)$str == (int)$str ? (int)$str : (float)$str;