From 3d09bf790f69c1d7ba585b7366f4301ac992b6cb Mon Sep 17 00:00:00 2001 From: lL1l1 <82986251+lL1l1@users.noreply.github.com> Date: Sat, 10 Aug 2024 14:02:53 -0700 Subject: [PATCH] Parse multiplication of terms --- www/res/scripts/luaToPhp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;