Skip to content

Commit

Permalink
chore(gen): update aliases list
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Mar 9, 2024
1 parent ede7c12 commit 52e4c23
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions gen/names.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ func splitByWords(s string) []string {

// pascal converts the given name into a PascalCase.
//
// user_info => UserInfo
// full_name => FullName
// user_id => UserID
// full-admin => FullAdmin
// cdnConfig => CDNConfig
// cdn_1_config => CDN1Config
// user_info => UserInfo
// full_name => FullName
// user_id => UserID
// full-admin => FullAdmin
// cdnConfig => CDNConfig
// cdn_1_config => CDN1Config
func pascal(s string) string {
words := splitByWords(s)
return pascalWords(words)
Expand Down Expand Up @@ -133,7 +133,8 @@ func ruleset() *inflect.Ruleset {
}

aliases = map[string]string{
"TCPO": "TCPObfuscated",
"TCPO": "TCPObfuscated",
"SMSJOBS": "SMSJobs",
}

return r
Expand Down

0 comments on commit 52e4c23

Please sign in to comment.