From d1fadf6428d1f41de532ea9af61d3b0aba5eb5df Mon Sep 17 00:00:00 2001 From: data-man Date: Fri, 18 Mar 2022 22:26:26 +0500 Subject: [PATCH] Don't replace digits to underscore in created files --- src/compiler/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }