fixed changeCase for strings with trailing whitespace
This commit is contained in:
		| @ -35,9 +35,9 @@ def changeCase(txt, case_type): | |||||||
|     if case_type == "upper": |     if case_type == "upper": | ||||||
|         return txt.upper() |         return txt.upper() | ||||||
|     if case_type == "start": |     if case_type == "start": | ||||||
|         txt = txt.split(" ") |         txt = txt.strip().split(" ") | ||||||
|         for i, word in enumerate(txt): |         for i, word in enumerate(txt): | ||||||
|             if word[0] in ['(', '{', '[']: |             if word[0] in ['(', '{', '[', "'", '"']: | ||||||
|                 txt[i] = word[0] + word[1:].capitalize() |                 txt[i] = word[0] + word[1:].capitalize() | ||||||
|             else: |             else: | ||||||
|                 txt[i] = word.capitalize() |                 txt[i] = word.capitalize() | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 RemixDev
					RemixDev