Skip to content

Commit

Permalink
Fixed "locale.py"
Browse files Browse the repository at this point in the history
  • Loading branch information
adokseo committed Sep 16, 2021
1 parent e3c81c2 commit 91f8302
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py/locale.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
#---------------------------------------------------------------

def lowerCamelCase(string):
string = re.sub(r"(-|_)+", " ", string).title().replace(" ", "")
string = re.sub(r"(-|_)+", " ", string).title()
string = re.sub(r"[^a-zA-Z0-9]", "", string)

return string[0].lower() + string[1:]

Expand Down

0 comments on commit 91f8302

Please sign in to comment.