vbin2v: always lowercase generated const names

pull/6249/head
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
1 changed files with 1 additions and 1 deletions

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 ''