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

Function is_url_like

internal/cbm/helpers.c:1383–1394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1381}
1382
1383static bool is_url_like(const char *s, int len) {
1384 if (len < MIN_ROUTE_LEN) {
1385 return false;
1386 }
1387 if (strstr(s, "://")) {
1388 return true;
1389 }
1390 if (s[0] == '/') {
1391 return is_rest_path(s, len);
1392 }
1393 return false;
1394}
1395
1396static bool has_config_extension(const char *s, int len) {
1397 static const char *exts[] = {".toml", ".yaml", ".yml", ".json", ".ini",

Callers 1

cbm_classify_stringFunction · 0.85

Calls 1

is_rest_pathFunction · 0.85

Tested by

no test coverage detected