fix: stupid typo
This commit is contained in:
parent
e4d11a2231
commit
0e4b763c2f
|
@ -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'],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue