Skip to content

NoMethodError: undefined method `match' for nil:NilClass #8

Description

@brianisme

This seems to be happening when there is a trailing ampersand with couples: true option.
To reproduce

> p = People::NameParser.new(couples: true)
> p.parse "John Doe &"

Got

NoMethodError: undefined method `match' for nil:NilClass
from /home/vagrant/.rvm/gems/ruby-2.2.0/gems/people-0.2.1/lib/people.rb:307:in `block in get_title'

People gem version 0.2.1
Ruby version 2.2.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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