Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvo authored Nov 6, 2020
1 parent 6c0d99d commit 454f031
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kloppy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,7 @@ def camelcase_to_snakecase(name):


def removes_suffix(string, suffix):
return string[: -len(suffix)]
if string[-len(suffix):] == suffix:
return string[: -len(suffix)]
else:
return string

0 comments on commit 454f031

Please sign in to comment.