def any_branch(string, success):
    """
    Parser function that modifies the output of the 'branch-any' command.
    This removes the 'heads/' part from the output for a regular branch.
    """
    if success is not True:
        return string
    if 'heads/' in string:
        string = string.replace('heads/', '')
    return string
