diff --git a/fin_defs/parse_price.py b/fin_defs/parse_price.py index 69e7d35..aa7e712 100644 --- a/fin_defs/parse_price.py +++ b/fin_defs/parse_price.py @@ -84,7 +84,7 @@ def parse_price(text: str, default_currency: Asset) -> AssetAmount | None: """ if isinstance(text, AssetAmount): return text - text = str(text).lower().strip() + text = str(text).lower().replace('\n', ' ').replace('\t', ' ').strip() if text == 'free': return AssetAmount(default_currency, Decimal(0))