mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-02 21:22:51 +00:00
fix(salary): parse Unicode whitespace grouping (#592)
* fix(salary): parse Unicode whitespace grouping * docs(changelog): record fix for #592
This commit is contained in:
1 parent
8cc2efbf21
commit
ef4d12711c
3 files changed
+68
-1
No files matched your search
@@ -65,7 +65,8 @@ def parse_numeric_cell(value):
|
||||
if not isinstance(value, str):
|
||||
raise ValueError("not numeric")
|
||||
|
||||
text = value.strip().replace("\u00a0", " ").replace(" ", "")
|
||||
# Localized exports also use narrow no-break and thin spaces for grouping.
|
||||
text = "".join(value.split())
|
||||
if not text:
|
||||
raise ValueError("not numeric")
|
||||
if "," in text and "." in text:
|
||||
|
||||
Reference in new issue
Block a user