Skip to content

Suffixes with Multiple Periods Not Detected #2

Closed

Description

@Takaitra

Suffixes with multiple periods in them (such as M.D.) are not being detected by parse-names.js. For example, "John Smith, M.D." is parsed with "John Smith" as the first name and "M.D." as the last name. The fix for this is to modify line 141 to ignore all periods instead of just the first period.

word = word.replace(/\./g,"").toLowerCase();

Activity

  1. added a commit that references this issue on Oct 10, 2012
  2. added a commit that references this issue on May 21, 2014
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