def validate_jobid(jid):
    """validate that job_id has expected characters; prevent directory traversal"""
    if not re.match(r"^(teapot_)?[a-zA-Z\d]+$", jid):
        return False
    else:
        return True
validate that job_id has expected characters; prevent directory traversal
app/dalton.py