Skip to content

Commit

Permalink
fix: username 和 name 为小写
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Dec 3, 2017
1 parent 3ad1904 commit e6f2849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const isProduction = process.env.NODE_ENV === 'production';
const defaultOptions = {
isProduction,
get username() {
return faker.name.findName().replace(/\s+/g, '');
return faker.name.findName().replace(/\s+/g, '').toLowerCase();
},
get name() {
return faker.name.firstName().replace(/\s+/g, '');
return faker.name.firstName().replace(/\s+/g, '').toLowerCase();
},
get email() {
return faker.internet.email();
Expand Down

0 comments on commit e6f2849

Please sign in to comment.