From e6986b040b8739e7eae77a33e28031bbf6223c25 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Fri, 21 Oct 2022 12:48:12 +0200 Subject: [PATCH] fix(glpiselectfield): comparison with regex --- inc/field/glpiselectfield.class.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/inc/field/glpiselectfield.class.php b/inc/field/glpiselectfield.class.php index 885534fd8..b93d8a751 100644 --- a/inc/field/glpiselectfield.class.php +++ b/inc/field/glpiselectfield.class.php @@ -243,10 +243,6 @@ public function lessThan($value): bool { return !$this->greaterThan($value) && !$this->equals($value); } - public function regex($value): bool { - return (preg_grep($value, $this->value)) ? true : false; - } - public function isAnonymousFormCompatible(): bool { return false; }