avoid duplication of ID check

This commit is contained in:
El RIDO
2025-03-13 08:14:01 +01:00
parent 629f263cf5
commit 7825471d70
3 changed files with 8 additions and 3 deletions
+1 -1
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);
}
/**