Don't replace digits to underscore in created files

This commit is contained in:
data-man
2022-03-18 22:26:26 +05:00
committed by Christoffer Lerno
parent 05d8e6c7b8
commit d1fadf6428

View File

@@ -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);
}