currency detection is now case insensitive

This commit is contained in:
Romain Bignon 2013-01-03 18:04:06 +01:00
commit 922bf1d465

View file

@ -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)