MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / looks_like_regex

Function looks_like_regex

src/cypher/cypher.c:2994–3000  ·  view source on GitHub ↗

Check if a string value looks like a regex pattern. */

Source from the content-addressed store, hash-verified

2992
2993/* Check if a string value looks like a regex pattern. */
2994static bool looks_like_regex(const char *s) {
2995 if (!s) {
2996 return false;
2997 }
2998 return strstr(s, ".*") || strstr(s, ".+") || strchr(s, '[') || strchr(s, '(') ||
2999 strchr(s, '|') || strchr(s, '^') || strchr(s, '$');
3000}
3001
3002/* Check inline property filters.
3003 * Values that look like regex patterns are matched with POSIX ERE;

Callers 1

check_inline_propsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected