(value: Any)
| 227 | return _doi_value(_first_text(paper, metadata, "doi", "doi_url")) |
| 228 | |
| 229 | |
| 230 | def _extract_arxiv_id(value: Any) -> str: |
| 231 | text = str(value or "").strip() |
| 232 | if not text: |
| 233 | return "" |
| 234 | match = re.search(r"(?:arxiv\.org/(?:abs|pdf)/)?(\d{4}\.\d{4,6}(?:v\d+)?)", text, flags=re.IGNORECASE) |
| 235 | return match.group(1) if match else "" |
| 236 | |
| 237 |
no outgoing calls
no test coverage detected