ignore ',' in cli-input (allow e.g. 50,000€)
This commit is contained in:
parent
4946d65fc7
commit
aa659bd383
2
meuro.py
2
meuro.py
@ -80,7 +80,7 @@ def _extractDate(s):
|
|||||||
|
|
||||||
def cliInterface():
|
def cliInterface():
|
||||||
import sys, re
|
import sys, re
|
||||||
arg = " ".join(sys.argv[1:])
|
arg = " ".join(sys.argv[1:]).replace(',','')
|
||||||
reFromEur = re.compile(r'(\d+(.\d\d)?)\W?(€|e|E)')
|
reFromEur = re.compile(r'(\d+(.\d\d)?)\W?(€|e|E)')
|
||||||
reFromMeur = re.compile(r'(\d+(.\d\d)?)\W?(μ|m|M)')
|
reFromMeur = re.compile(r'(\d+(.\d\d)?)\W?(μ|m|M)')
|
||||||
if (m := reFromEur.search(arg))!=None:
|
if (m := reFromEur.search(arg))!=None:
|
||||||
|
Loading…
Reference in New Issue
Block a user