From 454f031c24d6121123d6607c25fa44f6c3442ff0 Mon Sep 17 00:00:00 2001 From: koenvo Date: Fri, 6 Nov 2020 11:23:53 +0100 Subject: [PATCH] Update utils.py --- kloppy/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kloppy/utils.py b/kloppy/utils.py index 01a69f29..81fd179e 100644 --- a/kloppy/utils.py +++ b/kloppy/utils.py @@ -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