ignore ',' in cli-input (allow e.g. 50,000€)

This commit is contained in:
Dominik Moritz Roth 2021-10-30 12:49:57 +02:00
parent 4946d65fc7
commit aa659bd383

View File

@ -80,7 +80,7 @@ def _extractDate(s):
def cliInterface():
import sys, re
arg = " ".join(sys.argv[1:])
arg = " ".join(sys.argv[1:]).replace(',','')
reFromEur = re.compile(r'(\d+(.\d\d)?)\W?(€|e|E)')
reFromMeur = re.compile(r'(\d+(.\d\d)?)\W?(μ|m|M)')
if (m := reFromEur.search(arg))!=None: