Skip to content

Commit

Permalink
QL: Merge pull request #4 from github/fixCap
Browse files Browse the repository at this point in the history
fix snake_casing of generated ql identifiers
  • Loading branch information
erik-krogh authored May 26, 2021
2 parents 407f63b + b0d86d4 commit 786f756
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 176 deletions.
4 changes: 2 additions & 2 deletions node-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down
Loading

0 comments on commit 786f756

Please sign in to comment.