Skip to content

Commit

Permalink
fix decimal test
Browse files Browse the repository at this point in the history
  • Loading branch information
garfix committed Jun 13, 2018
1 parent 4b33982 commit 1f4dc4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Decimal.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
class Decimal
{
const DECIMAL_PATTERN = '/^-?\d{0,12}(\.\d{0,4})?$/';
const DECIMAL_PATTERN = '/^-?(\d{0,12}\.\d{0,4}|\d{1,12})$/';
const DECIMAL_FORMAT = "%.4f";

/**
Expand Down

0 comments on commit 1f4dc4b

Please sign in to comment.