after audit
This commit is contained in:
parent
e8e20637e6
commit
a5165dc3ba
80 changed files with 8489 additions and 7302 deletions
|
|
@ -131,7 +131,10 @@ def parse_citation_count(parts: list[str]) -> int | None:
|
|||
text = normalize_space(" ".join(parts))
|
||||
if not text:
|
||||
return 0
|
||||
digits = re.sub(r"\D+", "", text)
|
||||
match = re.search(r"[\d,]+", text)
|
||||
if not match:
|
||||
return None
|
||||
digits = match.group(0).replace(",", "")
|
||||
if not digits:
|
||||
return None
|
||||
return int(digits)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue