Skip to content

Some names are not parsed safely #4

@HardBlock729

Description

@HardBlock729

Given the name "Ma Tal Simpson" this error is thrown:

Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
   at System.ThrowHelper.ThrowArgumentOutOfRange_IndexException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Meerkat.Party.Naming.PersonNameParser.ConstructName()
   at Meerkat.Party.Naming.PersonNameParser.Parse(String name, IName person, String format)
   at Meerkat.Party.Naming.PersonName.Parse(String value, String format)

This error seems related to the "Ma" and the beginning of the name. When the "Ma" is removed the name parses correctly.

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