mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
src: style sweep
This commit is contained in:
parent
95fc53a1d0
commit
674ddc0d21
@ -147,8 +147,8 @@ class CSVListField extends BaseField
|
||||
{
|
||||
$validators = parent::getValidators();
|
||||
if ($this->internalValue != null && $this->internalMask != null) {
|
||||
$validators[] = new CallbackValidator(["callback" => function($data) {
|
||||
$regex_match = function($value, $pattern) {
|
||||
$validators[] = new CallbackValidator(['callback' => function ($data) {
|
||||
$regex_match = function ($value, $pattern) {
|
||||
$matches = [];
|
||||
preg_match(trim($pattern), $value, $matches);
|
||||
return $matches[0] == $value;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user