Clean code

This commit is contained in:
Laurent Destailleur
2023-05-01 14:33:08 +02:00
parent fe816445f5
commit e2ec34e1e5
31 changed files with 93 additions and 62 deletions

View File

@@ -248,7 +248,7 @@ class EvalMath
$matches = array();
if (preg_match("/[^\w\s+*^\/()\.,-]/", $expr, $matches)) { // make sure the characters are all good
return $this->trigger(4, "illegal character '{$matches[0]}'", $matches[0]);
return $this->trigger(4, "illegal character '".$matches[0]."'", $matches[0]);
}
while (1) { // 1 Infinite Loop ;)