parse-full-name
parse-full-name copied to clipboard
Not parsing properly when name has a dash (-).
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?
IMO it works as expected for double-barrelled names. https://en.wikipedia.org/wiki/Double-barrelled_name