Skip to content

Commit

Permalink
fix: Properly underscore elixir directory names with digits in the mi…
Browse files Browse the repository at this point in the history
…ddle (#908)
  • Loading branch information
dazuma authored Jan 19, 2021
1 parent ba960d7 commit b259489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autosynth/providers/elixir.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def list_repositories():

def _underscore(name: str) -> str:
name = re.sub(r"([A-Z]+)([A-Z][a-z])", r"\1_\2", name)
name = re.sub(r"([a-z])([A-Z])", r"\1_\2", name)
name = re.sub(r"([a-z0-9])([A-Z])", r"\1_\2", name)
return name.lower()


Expand Down

0 comments on commit b259489

Please sign in to comment.