diff --git a/src/compiler/context.c b/src/compiler/context.c index 086a049ad..70642dcc1 100644 --- a/src/compiler/context.c +++ b/src/compiler/context.c @@ -66,7 +66,7 @@ static bool filename_to_module_in_buffer(const char *path) for (int i = last_slash + 1; i < last_dot; i++) { char c = path[i]; - if (is_letter(c)) + if (is_letter(c) || is_digit(c)) { c = (char)(is_upper(c) ? c + 'a' - 'A' : c); }