diff --git a/inc/field/selectfield.class.php b/inc/field/selectfield.class.php index c47d0336c..90babd3a6 100644 --- a/inc/field/selectfield.class.php +++ b/inc/field/selectfield.class.php @@ -122,6 +122,9 @@ public function equals($value): bool { return $this->value == $value; } + public function regex($value): bool { + return preg_match($value, Toolbox::stripslashes_deep($this->value)) ? true : false; + } public function getHtmlIcon(): string { return '';