From 656dad2c14cc496d3486bd8146dc54b6b6800e80 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 16 Apr 2010 15:37:43 +0200 Subject: [PATCH] getFieldInFormat() : fixed regex with the new LSformat possibilities (upper/lower case) --- public_html/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/functions.php b/public_html/includes/functions.php index d87b63e0..6ebba942 100644 --- a/public_html/includes/functions.php +++ b/public_html/includes/functions.php @@ -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);