Skip to content

Commit 3535005

Browse files
author
unbuntu server
committed
chinese text bug
1 parent 47b0f95 commit 3535005

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/generateAvatar.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ var generateAvatar = function* (uid,size,font){
3939

4040
uid = (uid == '[object Generator]' ? 'A' : uid);
4141

42-
uid = pinyin(uid)[0][0]
43-
42+
uid = pinyin(uid).join("")
4443

4544
var flag = fnv.hash(uid).str();
4645
var bgcoloIndex = flag[flag.length - 1].toUpperCase();

now.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8134
1+
8144

0 commit comments

Comments
 (0)