import re


def deuniquify_job_name(unique_job_name):
    """
    Strips all the magic from a job name made unique by uniquify_job_name
    :param unique_job_name: Name with unique garbage on it
    :return: Name without unique garbage
    """
    return re.sub('^(.+)-[0-9a-f]{16}-[0-9a-f]{12,16}$', '\\1', unique_job_name)