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

Function looks_like_regex

src/cypher/cypher.c:2750–2756  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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