mirror of
https://github.com/flarum/framework.git
synced 2025-02-28 05:15:25 +08:00
Use correct validation rules for description. closes flarum/core#793
This commit is contained in:
parent
873b9fd780
commit
fb67393f81
@ -21,7 +21,7 @@ class TagValidator extends AbstractValidator
|
|||||||
'name' => ['required'],
|
'name' => ['required'],
|
||||||
'slug' => ['required', 'unique:tags'],
|
'slug' => ['required', 'unique:tags'],
|
||||||
'isHidden' => ['bool'],
|
'isHidden' => ['bool'],
|
||||||
'description' => ['text|max:700'],
|
'description' => ['string', 'max:700'],
|
||||||
'color' => ['regex:^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$'],
|
'color' => ['regex:^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user