Skip to content
Snippets Groups Projects
Commit d249dc51 authored by Jared Hancock's avatar Jared Hancock
Browse files

forms: Empty regex for TextboxField is an error

parent fa4ef3e9
Branches
Tags
No related merge requests found
......@@ -676,7 +676,7 @@ class TextboxField extends FormField {
$wrapped = "/".$value."/iu";
if (false === @preg_match($value, ' ')
&& false !== @preg_match($wrapped, ' ')) {
return $wrapped;
$value = $wrapped;
}
if ($value == '//iu')
return '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment