Commit f82c40fb authored by Pierre Nardozi's avatar Pierre Nardozi Committed by Vincent A

[bnporc] change the withdrawal regex to make fields optional

modify the withdrawal regex to make fields optional in case the original
wording is just "RETRAIT DAB" without the other fields.
parent dd0a7e98
......@@ -642,7 +642,7 @@ class Transaction(FrenchTransaction):
(re.compile('^(?P<category>ECHEANCEPRET)(?P<text>.*)'), FrenchTransaction.TYPE_LOAN_PAYMENT),
(
re.compile(
r'^(?P<category>RETRAIT DAB) (?P<dd>\d{2})/(?P<mm>\d{2})/(?P<yy>\d{2})( (?P<HH>\d+)H(?P<MM>\d+))?( \d+)? (?P<text>.*)'
r'^(?P<category>RETRAIT DAB) ?((?P<dd>\d{2})/(?P<mm>\d{2})/(?P<yy>\d{2})( (?P<HH>\d+)H(?P<MM>\d+))?( \d+)? (?P<text>.*))?'
),
FrenchTransaction.TYPE_WITHDRAWAL,
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment