(text: str)
| 1352 | |
| 1353 | |
| 1354 | def has_reference_entry(text: str) -> bool: |
| 1355 | normalized = normalize_lint_whitespace(text) |
| 1356 | if re.search(r"10\.\d{4,9}/\S+", normalized): |
| 1357 | return True |
| 1358 | if re.search(r"\barXiv[::]?\s*\d{4}\.\d{4,5}", normalized, flags=re.IGNORECASE): |
| 1359 | return True |
| 1360 | if re.search(r"\[\[[^\]]+\]\]", normalized): |
| 1361 | return True |
| 1362 | if re.search(r"\[[0-9]+\]", normalized): |
| 1363 | return True |
| 1364 | if re.search(r"\b[A-Z][A-Za-z-]+ et al\.?\s*,?\s*(?:19|20)\d{2}\b", normalized): |
| 1365 | return True |
| 1366 | if re.search(r"(?:19|20)\d{2}.*(?:DOI|doi|会议|期刊|arXiv)", normalized): |
| 1367 | return True |
| 1368 | return False |
| 1369 | |
| 1370 | |
| 1371 | def inspect_substantive_content(text: str) -> list[dict[str, object]]: |
no test coverage detected