let get_currency guess US$ means USD
This commit is contained in:
parent
531cb7c1e7
commit
1b3b9a72ff
1 changed files with 1 additions and 1 deletions
|
|
@ -455,7 +455,7 @@ class Currency(object):
|
|||
curtexts = klass.EXTRACTOR.sub(' ', text.upper()).split()
|
||||
for curtext in curtexts:
|
||||
for currency, symbol in klass.CURRENCIES.iteritems():
|
||||
if curtext in (currency, symbol):
|
||||
if curtext in (currency, symbol) or symbol in curtext:
|
||||
return currency
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue