Skip to content

Improve cleaning of candidate names #32

@warwickmm

Description

@warwickmm

In the Tickets class, we clean candidate names by replacing bad characters:

BAD_CHARS = {
'.': '',
',': '',
':': '',
'"': '', # only for hanging quote marks
'-': ' ',# since all quote sections cut first
"'": ' ',
'&': 'AND',
'“': '',
'”': ''
}

This seems a bit aggressive, as it's not uncommon for names to contain ' and - (e.g., Shannon O'Brien, Cindy Hyde-Smith).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions