import re


def _increment_channel_name(channel):
    """ Increment a channel's name.
    """
    if re.search(r'-[0-9]+$', channel):
        parts = channel.split('-')
        channel = '{}-{}'.format('-'.join(parts[:-1]), int(parts[-1]) + 1)
    else:
        channel = '{}-2'.format(channel)

    return channel