mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +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) {
|
function getFieldInFormat($format) {
|
||||||
$fields=array();
|
$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)) {
|
while (ereg($expr,$format,$ch)) {
|
||||||
$fields[]=$ch[1];
|
$fields[]=$ch[1];
|
||||||
$format=ereg_replace($ch[0],'',$format);
|
$format=ereg_replace($ch[0],'',$format);
|
||||||
|
|
Loading…
Reference in a new issue