Skip to content

Commit 8198fe9

Browse files
authored
Attribute stackoverflow
1 parent a025075 commit 8198fe9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/info.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ def split_string(s,even_letters = True):
294294
second_attempt = [x for x in re.split("[_]",s) if not x.isspace()]
295295
if len(second_attempt) > 1:
296296
return second_attempt
297+
# https://stackoverflow.com/questions/29916065/how-to-do-camelcase-split-in-python Jossef Harush
297298
third_attempt = re.sub('([A-Z][a-z]+)', r' \1', re.sub('([A-Z]+)', r' \1', s)).split()
298299
if len(third_attempt) > 1:
299300
return third_attempt

0 commit comments

Comments
 (0)