HOR-3290 improvement

This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-05-30 10:57:29 -04:00
parent ccc3552e12
commit f1e9e1e492
2 changed files with 44 additions and 34 deletions

View File

@@ -2950,6 +2950,16 @@ class G
{
return (bool) preg_match( '/^[0-9A-Za-z]{14,}/', $uid );
}
/**
* Verify if the input string is a valid UID of size 32
* @param string $uid
* @return boolean
*/
public static function verifyUniqueID32($uid)
{
return (bool) preg_match('/^[0-9A-Za-z]{32,32}$/', $uid);
}
/**
* is_utf8