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

Function _split_author_text

skills/journal-fetcher/scripts/fetch_journal.py:306–312  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

304 return values
305
306 for name in names:
307 patterns = [
308 rf"""<meta[^>]+(?:name|property)=["']{re.escape(name)}["'][^>]+content=["']([^"']+)["']""",
309 rf"""<meta[^>]+content=["']([^"']+)["'][^>]+(?:name|property)=["']{re.escape(name)}["']""",
310 ]
311 for pattern in patterns:
312 for match in re.finditer(pattern, html, flags=re.I):
313 cleaned = _clean_html_text(match.group(1))
314 if cleaned:
315 values.append(cleaned)

Callers 1

Calls 1

_clean_html_textFunction · 0.70

Tested by

no test coverage detected