mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
getFieldInFormat() : fixed regex with the new LSformat possibilities (upper/lower case)
This commit is contained in:
parent
5247955cfc
commit
656dad2c14
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ function _getFData_extractAndModify($data,$ch) {
|
|||
|
||||
function getFieldInFormat($format) {
|
||||
$fields=array();
|
||||
$expr="%{([A-Za-z0-9]+)(\:(-?[0-9])+)?(\:(-?[0-9])+)?}";
|
||||
$expr="%{([A-Za-z0-9]+)(\:(-?[0-9])+)?(\:(-?[0-9]+))?(-)?(\!|\_)?(~)?}";
|
||||
while (ereg($expr,$format,$ch)) {
|
||||
$fields[]=$ch[1];
|
||||
$format=ereg_replace($ch[0],'',$format);
|
||||
|
|
Loading…
Reference in a new issue