Skip to content

Commit 799c82e

Browse files
author
cbojar
committed
Return the static NameParse if new NameParse() is called, for compatibility.
1 parent c32bb04 commit 799c82e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

parse-names.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ if (!String.prototype.trim) {
1010
}
1111

1212
var NameParse = (function(){
13-
function NameParse() {}
13+
function NameParse() {
14+
return NameParse;
15+
}
1416

1517
// split full names into the following parts:
1618
// - prefix / salutation (Mr., Mrs., etc)

0 commit comments

Comments
 (0)