1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vbin2v: always lowercase generated const names

This commit is contained in:
ITotalJustice 2020-08-28 21:45:49 +01:00 committed by GitHub
parent 30fc374fc5
commit 1bf7e1596b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ fn (context Context) file2v(file string) string {
mut sb := strings.new_builder(1000)
fname := os.file_name(file)
fname_no_dots := fname.replace('.', '_')
byte_name := '${context.prefix}${fname_no_dots}'
byte_name := '${context.prefix}${fname_no_dots}'.to_lower()
fbytes := os.read_bytes(file) or {
eprintln('Error: $err')
return ''