Modification de la règle de preg_match

This commit is contained in:
Michael RICOIS 2012-05-16 14:16:26 +00:00
parent 053d4d0b89
commit 95f1d2054d

View File

@ -711,7 +711,8 @@ class Scores_Fields
//Remove all space in string value
$value = str_replace(' ', '', $value);
//Try to detect separator and transform as array
if ( preg_match_all('/([0-9A-Z]{1,5})(,|;){0,1}/', $value, $matches) ){
//@todo : Schema a detecter
if ( preg_match_all('/([0-9A-Z]+)(?:,|;)?/', $value, $matches) ){
Zend_Registry::get('firebug')->info($matches);
$value = $matches[1];
}