diff --git a/classes/Validate.php b/classes/Validate.php index 9196216dd..65fa7f790 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -233,7 +233,7 @@ class ValidateCore */ public static function isPrice($price) { - return preg_match('/^[0-9]{1,10}(\.[0-9]{1,9})?$/', $price); + return preg_match('/^[0-9]{1,10}(\.[0-9]{1,})?$/', $price); } /** @@ -244,7 +244,7 @@ class ValidateCore */ public static function isNegativePrice($price) { - return preg_match('/^[-]?[0-9]{1,10}(\.[0-9]{1,9})?$/', $price); + return preg_match('/^[-]?[0-9]{1,10}(\.[0-9]{1,})?$/', $price); } /**