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

Function looks_like_regex

src/cypher/cypher.c:2749–2755  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2747
2748/* Check if a string value looks like a regex pattern. */
2749static bool looks_like_regex(const char *s) {
2750 if (!s) {
2751 return false;
2752 }
2753 return strstr(s, ".*") || strstr(s, ".+") || strchr(s, '[') || strchr(s, '(') ||
2754 strchr(s, '|') || strchr(s, '^') || strchr(s, '$');
2755}
2756
2757/* Check inline property filters.
2758 * 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