in cli/bpfcov.c [895:904]
static void strip_extension(char *str)
{
char *end = str + strlen(str);
while (end > str && *end != '.' && *end != '\\' && *end != '/') {
--end;
}
if ((end > str && *end == '.') && (*(end - 1) != '\\' && *(end - 1) != '/')) {
*end = '\0';
}
}