MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _looks_like_wrapper_text

Function _looks_like_wrapper_text

uncommon_route/proxy.py:376–386  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

374
375
376def _looks_like_wrapper_text(text: str) -> bool:
377 stripped = text.strip()
378 if not stripped:
379 return False
380 lower = " ".join(stripped.lower().split())
381 if any(marker in lower for marker in _WRAPPER_MARKERS):
382 return True
383 match = _WRAPPER_BLOCK_RE.fullmatch(stripped)
384 if match and match.group("tag").lower() in _WRAPPER_TAGS:
385 return True
386 return False
387
388
389def _strip_wrapper_prefix(text: str) -> str:

Callers 2

_strip_wrapper_prefixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected