Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -33,7 +33,7 @@ var users = {}; | ... | @@ -33,7 +33,7 @@ var users = {}; |
| 33 | var bans = []; | 33 | var bans = []; |
| 34 | var uid = 1; | 34 | var uid = 1; |
| 35 | 35 | ||
| 36 | -var alphanumeric = /^\w+$/; | 36 | +var alphanumeric = /^가-힣\x20^a-z^A-Z^0-9/; |
| 37 | 37 | ||
| 38 | if(config.readline.use) { | 38 | if(config.readline.use) { |
| 39 | var rl = readline.createInterface(process.stdin, process.stdout); | 39 | var rl = readline.createInterface(process.stdin, process.stdout); |
| ... | @@ -185,7 +185,7 @@ function updateUser(id, name) { | ... | @@ -185,7 +185,7 @@ function updateUser(id, name) { |
| 185 | var motive = 'format'; | 185 | var motive = 'format'; |
| 186 | var check = false; | 186 | var check = false; |
| 187 | 187 | ||
| 188 | - //if(!name.match(alphanumeric)) motive = 'format'; | 188 | + if(!name.match(alphanumeric)) motive = 'format'; |
| 189 | if(name.length < 3 || name.length > 16) motive = 'length'; | 189 | if(name.length < 3 || name.length > 16) motive = 'length'; |
| 190 | if(utils.checkUser(clients, name) || name == 'Console' || name == 'System') motive = 'taken'; | 190 | if(utils.checkUser(clients, name) || name == 'Console' || name == 'System') motive = 'taken'; |
| 191 | if(clients[id].un != null) check = true; | 191 | if(clients[id].un != null) check = true; | ... | ... |
-
Please register or login to post a comment