def parseCommaSeparatedTimes()

in src/guclimate/core/parse_input.py [0:0]


def parseCommaSeparatedTimes(input: str):
    pattern = re.compile(r"^[0-9]{2}:[0-9]{2},\s?[0-9]{2}:[0-9]{2}$")
    if pattern.match(input) is None:
        return None

    components = input.split(",")
    return [time.strip() for time in components]