1
0
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:
Toby Zerner
2016-02-26 10:41:19 +10:30
parent ceda88d701
commit f494b8369d

View File

@@ -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'],
];
}