mirror of
https://github.com/flarum/framework.git
synced 2025-04-01 21:55:16 +08:00
Fix color validation regex. closes flarum/core#827
This commit is contained in:
parent
ceda88d701
commit
f494b8369d
@ -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'],
|
||||
];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user