Modification de la règle de preg_match
This commit is contained in:
parent
053d4d0b89
commit
95f1d2054d
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user