mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-10 05:52:20 -05:00
* start * migration rewrite * update name * convert chowdown to new methods * refactor/remove duplicate code * refactor to unify logger + log to file * remove toolbox * Display report on UI Co-authored-by: hay-kot <hay-kot@pm.me>
13 lines
375 B
Python
13 lines
375 B
Python
def split_by_comma(tag_string: str):
|
|
"""Splits a single string by ',' performs a line strip and then title cases the resulting string
|
|
|
|
Args:
|
|
tag_string (str): [description]
|
|
|
|
Returns:
|
|
[type]: [description]
|
|
"""
|
|
if not isinstance(tag_string, str):
|
|
return None
|
|
return [x.title().lstrip() for x in tag_string.split(",") if x != ""]
|