diff --git a/src/includes/class/class.LSformElement_supannRessourceEtat.php b/src/includes/class/class.LSformElement_supannRessourceEtat.php index 795d2857..c080c4f3 100644 --- a/src/includes/class/class.LSformElement_supannRessourceEtat.php +++ b/src/includes/class/class.LSformElement_supannRessourceEtat.php @@ -66,7 +66,7 @@ class LSformElement_supannRessourceEtat extends LSformElement_supannCompositeAtt * @return array|null La valeur parsée, ou NULL en cas de problème */ public function parseCompositeValue($value) { - if (preg_match('/\{(?[^\}]+)\}(?[AIS])(:(?.*))?/', $value, $matches)) { + if (preg_match('/\{(?[^\}]+)\}(?[^:]+)(:(?.*))?/', $value, $matches)) { $parseValue = array( 'ressource' => $matches['ressource'], 'etat' => $matches['etat'], diff --git a/src/includes/class/class.LSformElement_supannRessourceEtatDate.php b/src/includes/class/class.LSformElement_supannRessourceEtatDate.php index 5862beb0..d20900fc 100644 --- a/src/includes/class/class.LSformElement_supannRessourceEtatDate.php +++ b/src/includes/class/class.LSformElement_supannRessourceEtatDate.php @@ -78,7 +78,7 @@ class LSformElement_supannRessourceEtatDate extends LSformElement_supannComposit * @return array|null La valeur parsée, ou NULL en cas de problème */ public function parseCompositeValue($value) { - if (preg_match('/\{(?[^\}]+)\}(?[AIS]):(?[^\:]*):(?[0-9]{8})?:(?[0-9]{8})?/', $value, $matches)) { + if (preg_match('/\{(?[^\}]+)\}(?[^:]+):(?[^\:]*):(?[0-9]{8})?:(?[0-9]{8})?/', $value, $matches)) { $parseValue = array( 'ressource' => $matches['ressource'], 'etat' => $matches['etat'],