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

Function _glob

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

Source from the content-addressed store, hash-verified

222 compiled = re.compile(regex_str)
223
224 def _glob(path: str) -> bool:
225 n = (path or "").lstrip("/")
226 base = n.split("/")[-1] if n else n
227 return bool(compiled.match(base))
228
229 return _glob
230

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected