From df79e3009f92a7ff3ff1b1d9d65368dfc00e0b9c Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sat, 25 Apr 2020 18:46:19 +0200 Subject: [PATCH] Fixed start of each word and sentence case capitalization --- deemix/utils/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deemix/utils/misc.py b/deemix/utils/misc.py index a41028a..07d43c9 100644 --- a/deemix/utils/misc.py +++ b/deemix/utils/misc.py @@ -29,11 +29,11 @@ def changeCase(string, type): string = string.split(" ") res = [] for index, value in enumerate(string): - res.append(value[0].upper() + value[0:].lower()) + res.append(value[0].upper() + value[1:].lower()) res = " ".join(res) return res elif type == "sentence": - res = string[0].upper() + string[0:].lower() + res = string[0].upper() + string[1:].lower() return res else: return string