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

Function has_config_extension

internal/cbm/helpers.c:1396–1406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1394}
1395
1396static bool has_config_extension(const char *s, int len) {
1397 static const char *exts[] = {".toml", ".yaml", ".yml", ".json", ".ini",
1398 ".env", ".cfg", ".conf", ".properties", NULL};
1399 for (int i = 0; exts[i]; i++) {
1400 int elen = (int)strlen(exts[i]);
1401 if (len > elen && strcmp(s + len - elen, exts[i]) == 0) {
1402 return true;
1403 }
1404 }
1405 return false;
1406}
1407
1408static bool is_env_var_pattern(const char *s, int len) {
1409 if (len < MIN_ROUTE_LEN || len > MAX_HEX_NAME_LEN) {

Callers 1

cbm_classify_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected