QL: fix snake_casing of generated ql identifiers

This commit is contained in:
Erik Krogh Kristensen
2021-05-26 11:12:05 +00:00
committed by GitHub
parent 823ab1076a
commit b0d86d466f
2 changed files with 176 additions and 176 deletions

View File

@@ -357,8 +357,8 @@ fn escape_name(name: &str) -> String {
'-' => result.push_str("minus"),
'@' => result.push_str("at"),
_ if c.is_uppercase() => {
result.push_str(&c.to_lowercase().to_string());
result.push('_')
result.push('_');
result.push_str(&c.to_lowercase().to_string())
}
_ => result.push(c),
}