Improved SEPA description parsing

This commit is contained in:
Robert Horlings
2016-01-18 15:42:56 +01:00
parent f2fa5e140b
commit 10ea60daaf

View File

@@ -66,7 +66,7 @@ class AbnAmroDescription
$type = trim($matches[1]);
// SEPA plain descriptions contain several key-value pairs, split by a colon
preg_match_all( "/([A-Za-z]+(?=:\s)):\s([A-Za-z 0-9.-]+(?=\s))/", $this->data[ "description" ], $matches, PREG_SET_ORDER );
preg_match_all( "/([A-Za-z]+(?=:\s)):\s([A-Za-z 0-9._#-]+(?=\s))/", $this->data[ "description" ], $matches, PREG_SET_ORDER );
foreach( $matches as $match ) {
$key = $match[1];