Skip to content

Not parsing properly when name has a dash (-). #30

Description

@tahaaslam1

The functions returns only last in case string is passed B05-1005
In my opinion, it should return return

{
  title: '',
  first: 'B05',
  middle: '-',
  last: '1005',
  nick: '',
  suffix: '',
  error: []
}

Also, is there a way we can choose which part to include in which case by passing preferences?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions