Index: trunk/extensions/Validator/includes/criteria/CriterionIsFloat.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | * @see ItemParameterCriterion::validate |
28 | 28 | */ |
29 | 29 | protected function doValidation( $value, Parameter $parameter, array $parameters ) { |
30 | | - return preg_match( '/^\d+(\.\d+)?$/', $value ); |
| 30 | + return preg_match( '/^(-)?\d+((\.|,)\d+)?$/', $value ); |
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |