mirror of
https://github.com/github/codeql.git
synced 2026-02-10 04:01:11 +01:00
QL: fix snake_casing of generated ql identifiers
This commit is contained in:
committed by
GitHub
parent
823ab1076a
commit
b0d86d466f
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user