MCPcopy Create free account
hub / github.com/vercel/examples / _exact

Function _exact

python/vibe-coding-ide/backend/src/agent/utils.py:204–207  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

202 if ("*" not in pattern) and ("?" not in pattern):
203
204 def _exact(path: str) -> bool:
205 n = (path or "").lstrip("/")
206 base = n.split("/")[-1] if n else n
207 return base == pattern
208
209 return _exact
210

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected