import re


def validate_name(name):
    """
    name should conform to the pattern ^[a-z][a-z0-9-]{1,28}[a-z0-9]$ as
    specified in the Heroku API.
    Returns True if name conforms to Heorku API naming standards,
        False otherwise.
    """
    name_regex = re.compile(r"^[a-z][a-z0-9-]{1,28}[a-z0-9]$")
    return True if name_regex.search(name) is not None else False