uinames icon indicating copy to clipboard operation
uinames copied to clipboard

Fix resulting names when first name has spaces

Open Xeroday opened this issue 7 years ago • 0 comments

When the (first) name of generated output has spaces, the result is invalid.

Here's an example: {"name":"","surname":"María Carmen Rodríguez","gender":"female","region":"Spain"}

The name (which was originally 'María Carmen') is empty and instead put into the surname.

Other examples that currently break: Name: "A B", Surname: "C" Current: Name: "", Surname: "A B C"

Name: "A B C", Surname: "D" Current: Name: "A", Surname: "B C D"

Name: "A B C", Surname: "D E" Current: Name: "A", Surname: "B C D E"

Xeroday avatar Jul 18 '18 18:07 Xeroday