fix: stupid typo

This commit is contained in:
b1ek 2024-08-21 18:08:20 +10:00
parent e4d11a2231
commit 0e4b763c2f
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class Image extends \yii\db\ActiveRecord
{
return [
[['sha256', 'original_name'], 'required'],
[['original_name'], 'match', '/^[a-z0-9-_]+(|\.[\w\d]+)$/i'],
[['original_name'], 'match', 'pattern' => '/^[a-z0-9-_]+(|\.[\w\d]+)$/i'],
];
}