Skip to content

Commit 21dbcb3

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎parse-names.js‎

Lines changed: 1 addition & 0 deletions
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)