currency detection is now case insensitive
This commit is contained in:
parent
e67e316c05
commit
922bf1d465
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class Currency:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_currency(klass, text):
|
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)
|
return klass.TXT2CUR.get(text, klass.CUR_UNKNOWN)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue