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

Function looks_like_regex

src/cypher/cypher.c:2526–2532  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2524
2525/* Check if a string value looks like a regex pattern. */
2526static bool looks_like_regex(const char *s) {
2527 if (!s) {
2528 return false;
2529 }
2530 return strstr(s, ".*") || strstr(s, ".+") || strchr(s, '[') || strchr(s, '(') ||
2531 strchr(s, '|') || strchr(s, '^') || strchr(s, '$');
2532}
2533
2534/* Check inline property filters.
2535 * 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