aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLogan Allred <[email protected]>2015-10-12 03:22:31 -0600
committerMarak <[email protected]>2016-03-20 20:35:49 -0400
commit0e18bef7f41b49e4d7a757d36bf31fac6e6f928a (patch)
tree2eb2df548f0b9049a2d604a280551995d6831275 /lib
parenta41140d903698b725cca7f7f73710f65c314aef3 (diff)
downloadfaker-0e18bef7f41b49e4d7a757d36bf31fac6e6f928a.tar.xz
faker-0e18bef7f41b49e4d7a757d36bf31fac6e6f928a.zip
Fix name suffixes
Fixes names so that it puts suffixes at the end of names instead of prefixes Conflicts: lib/name.js
Diffstat (limited to 'lib')
-rw-r--r--lib/name.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/name.js b/lib/name.js
index 3280341c..ae02e867 100644
--- a/lib/name.js
+++ b/lib/name.js
@@ -76,7 +76,7 @@ function Name (faker) {
return prefix + " " + firstName + " " + lastName;
}
case 1:
- suffix = faker.name.prefix(gender);
+ suffix = faker.name.suffix(gender);
if (suffix) {
return firstName + " " + lastName + " " + suffix;
}