From 593fae9df3d29e48d383af1caaf7548f57fdf718 Mon Sep 17 00:00:00 2001
From: David Surville <david.surville@unicaen.fr>
Date: Thu, 20 May 2021 19:05:42 +0200
Subject: [PATCH] =?UTF-8?q?[Fix]=20L'attribut=20supannEmpCorps=20peut=20co?=
 =?UTF-8?q?ntenir=20des=20caract=C3=A8res=20sp=C3=A9ciaux=20:=20-/?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/UnicaenLdap/Entity/Base/People.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/UnicaenLdap/Entity/Base/People.php b/src/UnicaenLdap/Entity/Base/People.php
index c6b9f14..d8d43f1 100644
--- a/src/UnicaenLdap/Entity/Base/People.php
+++ b/src/UnicaenLdap/Entity/Base/People.php
@@ -1780,9 +1780,9 @@ class People extends Entity
         $corpsLabel = $this->getLabel('NCORPS');
         $value = array_map(function ($val) use ($corpsLabel) {
             if (is_string($val)) {
-                if (preg_match("/^$corpsLabel\w+$/", $val)) {
+                if (preg_match("/^$corpsLabel.*$/", $val)) {
                     return $val;
-                } elseif (preg_match("/^\w+$/", $val)) {
+                } elseif (preg_match("/^.*$/", $val)) {
                     return sprintf('%s%s', $corpsLabel, $val);
                 }
             }
-- 
GitLab