Skip to content

Commit

Permalink
Allow float numbers in numeric validations.(cherry picked from commit a…
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Martín authored and Matt Curry committed Jun 12, 2009
1 parent e561127 commit 6911145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/helpers/validation.php
Expand Up @@ -205,7 +205,7 @@ function __convertRule($rule) {
//(both +0123.45e6 and 0xFF are valid) then what is allowed in this regular expression.
//99% of people using this validation probably want to restrict to just numbers in standard
//decimal notation. Feel free to alter or delete.
return '/^[+-]?[0-9]+$/';
return '/^[+-]?[0-9|.]+$/';
case 'range':
case 'comparison':
//Don't think there is a way to do this with a regular expressions,
Expand Down

0 comments on commit 6911145

Please sign in to comment.