MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _extract_doi

Function _extract_doi

agents/profile-report-agent/main.py:73–78  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

71
72def _extract_doi(value: Any) -> str:
73 text = str(value or "").strip()
74 if not text:
75 return ""
76 match = re.search(r"(10\.\d{4,9}/\S+)", text, flags=re.I)
77 return match.group(1).rstrip(")>.,; ") if match else ""
78
79
80def _normalize_author_key(value: Any) -> str:
81 lowered = str(value or "").strip().casefold()

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected