diff --git a/voussoirkit/stringtools.py b/voussoirkit/stringtools.py index 83a7693..3fba9d7 100644 --- a/voussoirkit/stringtools.py +++ b/voussoirkit/stringtools.py @@ -26,7 +26,8 @@ def comma_space_split(text) -> list: ''' if text is None: return text - return re.split(r'[ ,]+', text.strip()) + parts = re.split(r'[ ,]+', text.strip()) + return [part for part in parts if part] def excise(text, mark_left, mark_right) -> str: '''