- invalid_float 메시지 추가

- 파일 용량 설정의 룰셋 추가 수정
- XML Filter에서 float를 처리할 수 있도록 룰세 추가
This commit is contained in:
bnu 2016-07-26 17:26:37 +09:00 committed by Kijin Sung
parent 46278a886b
commit 61c54504ef
9 changed files with 14 additions and 5 deletions

View file

@ -92,7 +92,7 @@ class Validator
'alpha' => '/^[a-z]*$/i',
'alpha_number' => '/^[a-z][a-z0-9_]*$/i',
'number' => '/^(?:[1-9]\\d*|0)$/',
'float' => '/^\d*(\.?\d*)$/'
'float' => '/^\d+(\.\d+)?$/'
));
$this->_has_mb_func = is_callable('mb_strlen');