Update function isNumeric. Less than 12 character [skip ci]

This commit is contained in:
jose9008 2020-12-16 14:33:51 -05:00
parent ecf5aafe9c
commit 51c0a1983b

View File

@ -73,7 +73,8 @@ class CellHelper
*/ */
public static function isNumeric($value) public static function isNumeric($value)
{ {
return preg_match('#^0\d+$#', $value) === 0 && $value == (string) ((float) $value); return preg_match('#^0\d+$#', $value) === 0 && $value == (string) ((float) $value)
&& strlen($value) < 12;
} }
/** /**