fix(convert-salary-excel): reject ambiguous dot thousands separators (#326)

This commit is contained in:
Oscar Madera
2026-08-14 10:51:06 +02:00
committed by GitHub
parent 45d55a7452
commit 621ce5ab39
3 changed files with 32 additions and 0 deletions
+3
View File
@@ -70,6 +70,9 @@ def parse_numeric_cell(value):
if re.fullmatch(r"[+-]?\d+,\d{3}", text):
raise ValueError("ambiguous comma separator")
text = text.replace(",", ".")
elif "." in text:
if re.fullmatch(r"[+-]?\d+\.\d{3}", text):
raise ValueError("ambiguous dot separator")
return float(text)