avoid duplication of ID check

This commit is contained in:
El RIDO 2025-03-13 08:14:01 +01:00
parent 629f263cf5
commit 7825471d70
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
3 changed files with 8 additions and 3 deletions

View file

@ -155,7 +155,7 @@ abstract class AbstractModel
*/
public static function isValidId($id)
{
return (bool) preg_match('#\A[a-f\d]{16}\z#', (string) $id);
return (bool) preg_match('#\A[a-f0-9]{16}\z#', (string) $id);
}
/**