MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / is_glob_pattern

Function is_glob_pattern

src/permissions/bash_parser/shell_quote.py:22–23  ·  view source on GitHub ↗
(s: str)

Source from the content-addressed store, hash-verified

20
21
22def is_glob_pattern(s: str) -> bool:
23 return bool(re.search(r"(?<!\\)[*?[\]]", s))
24
25
26def expand_home(path: str) -> str:

Callers 3

test_starMethod · 0.90
test_question_markMethod · 0.90
test_no_globMethod · 0.90

Calls 1

searchMethod · 0.80

Tested by 3

test_starMethod · 0.72
test_question_markMethod · 0.72
test_no_globMethod · 0.72