mirror of
https://github.com/github/codeql.git
synced 2026-04-20 14:34:04 +02:00
fix snake_casing of camelCased identifiers
This commit is contained in:
committed by
GitHub
parent
aea0c6fc64
commit
9c1b237e3b
@@ -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