Parsing wrong price in presence of $
argaurav opened this issue · 2 comments
argaurav commented
Hi,
I came across this example:
In [14]: Price.fromstring("2 pairs from $349", decimal_separator=".")
Out[14]: Price(amount=Decimal('2'), currency='$')
given we consider extracting currency
as $ would it make sense to handle this case inside price parser?
argaurav commented
I have seen other examples like
In [15]: Price.fromstring("4 options from $439.34", decimal_separator=".")
Out[15]: Price(amount=Decimal('4'), currency='$')