Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throws an error if pass a single word that contains a parenthesis #5

Open
2fd opened this issue Oct 5, 2017 · 1 comment
Open

Throws an error if pass a single word that contains a parenthesis #5

2fd opened this issue Oct 5, 2017 · 1 comment

Comments

@2fd
Copy link

2fd commented Oct 5, 2017

> humanname.parse('(Name)')

TypeError: Cannot read property 'split' of undefined
    at NameParse.safe_ucfirst (node_modules/humanname/lib/parse-names.js:156:18)
    at NameParse.fix_case (node_modules/humanname/lib/parse-names.js:144:12)
    at NameParse.parse (humanname/lib/parse-names.js:238:18)
    at repl:1:11
    at ContextifyScript.Script.runInThisContext (vm.js:44:33)
    at REPLServer.defaultEval (repl.js:239:29)
    at bound (domain.js:301:14)
    at REPLServer.runBound [as eval] (domain.js:314:12)
    at REPLServer.onLine (repl.js:440:10)
    at emitOne (events.js:120:20)
@yubo56
Copy link

yubo56 commented Mar 14, 2018

To add onto this,

> humanname.parse('Mr')
TypeError: Cannot read property 'split' of undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants