| 1394 | } |
| 1395 | |
| 1396 | static 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 | |
| 1408 | static bool is_env_var_pattern(const char *s, int len) { |
| 1409 | if (len < MIN_ROUTE_LEN || len > MAX_HEX_NAME_LEN) { |
no outgoing calls
no test coverage detected