Update function isNumeric. Less than 12 character [skip ci]
This commit is contained in:
parent
ecf5aafe9c
commit
51c0a1983b
@ -73,7 +73,8 @@ class CellHelper
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user