Skip to content

Commit 21dbcb3

Browse files
authored
Merge pull request #11 from drhops/patch-1
Handle parse("a")
2 parents 6069597 + 3351026 commit 21dbcb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

parse-names.js

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ var NameParse = (function(){
147147

148148
// single letter, possibly followed by a period
149149
NameParse.is_initial = function (word) {
150+
if (!word) { return false; }
150151
word = this.removeIgnoredChars(word);
151152
return (word.length === 1);
152153
};

0 commit comments

Comments
 (0)