MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _safe_pick

Method _safe_pick

IntelOSINT.py:16717–16722  ·  view source on GitHub ↗
(text_blob, regex)

Source from the content-addressed store, hash-verified

16715 base_img = base.get("icon", "")
16716
16717 def _safe_pick(text_blob, regex):
16718 m = re.search(regex, text_blob, flags=re.IGNORECASE | re.MULTILINE)
16719 if m:
16720 v = (m.group(1) or "").strip()
16721 return v if v and v != "-" else ""
16722 return ""
16723
16724 try:
16725 with sync_playwright() as p:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected