Commit 2aeea064 authored by Axel Pelerin's avatar Axel Pelerin Committed by ntome

[boursorama] fix missing type for some withdrawal

Small fix of regex in PATTERNS to make it accepts either ddmmyy and
dd/mm/yy date format. Previous regex was only dealing with the
first case, so the other one was not typed.

Closes: 13020@zendesk
parent 5161f5c0
......@@ -123,7 +123,7 @@ class Transaction(FrenchTransaction):
FrenchTransaction.TYPE_CARD),
(re.compile('^(PRLV SEPA |PRLV |TIP )(?P<text>.*)'),
FrenchTransaction.TYPE_ORDER),
(re.compile('^RETRAIT DAB (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{2}) (?P<text>.*)'),
(re.compile('^RETRAIT DAB (?P<dd>\d{2})/?(?P<mm>\d{2})/?(?P<yy>\d{2}) (?P<text>.*)'),
FrenchTransaction.TYPE_WITHDRAWAL),
(re.compile(r'^([A-Z][\sa-z]* )?RETRAIT DAB (?P<dd>\d{2})(?P<mm>\d{2})(?P<yy>\d{4}) (?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