This commit is contained in:
Arul 2018-06-05 09:27:19 +00:00 committed by GitHub
commit 12861c7fbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,6 @@ class HexValidator
*/
public static function validate($value)
{
if (!is_string($value)) {
return false;
}
return (preg_match('/^0x[a-fA-F0-9]*$/', $value) >= 1);
return is_string($value) && ctype_xdigit($value);
}
}