mirror of
https://github.com/flarum/core.git
synced 2025-08-13 11:54:32 +02:00
Fix color validation regex. closes flarum/core#827
This commit is contained in:
@@ -22,6 +22,6 @@ class TagValidator extends AbstractValidator
|
||||
'slug' => ['required', 'unique:tags'],
|
||||
'isHidden' => ['bool'],
|
||||
'description' => ['string', 'max:700'],
|
||||
'color' => ['regex:^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$'],
|
||||
'color' => ['regex:/^#([a-f0-9]{6}|[a-f0-9]{3})$/i'],
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user