Skip to content

Commit d287a93

Browse files
authored
Merge pull request #5 from rjLelis/hotfix/#4
Fix empty string bug
2 parents 4a5c257 + 25bd076 commit d287a93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

count_group/count_group.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

22
def count_group(string: str) -> list:
3+
if not string:
4+
return []
35
counter = 0
46
group = []
57
temp = string[0]

0 commit comments

Comments
 (0)