From 922bf1d46593dd51ed150542aa8feb9476628cdb Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Thu, 3 Jan 2013 18:04:06 +0100 Subject: [PATCH] currency detection is now case insensitive --- weboob/capabilities/bank.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/capabilities/bank.py b/weboob/capabilities/bank.py index df8803b3..7777c67e 100644 --- a/weboob/capabilities/bank.py +++ b/weboob/capabilities/bank.py @@ -56,7 +56,7 @@ class Currency: @classmethod def get_currency(klass, text): - text = re.sub(u'[^A-Za-z€]', '', text) + text = re.sub(u'[^A-Z€]', '', text.upper()) return klass.TXT2CUR.get(text, klass.CUR_UNKNOWN)