diff --git a/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/CSVListField.php b/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/CSVListField.php index 18f42e96d..b0baaa868 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/CSVListField.php +++ b/src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/CSVListField.php @@ -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;