mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Don't replace digits to underscore in created files
This commit is contained in:
committed by
Christoffer Lerno
parent
05d8e6c7b8
commit
d1fadf6428
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user