김대욱

app.js_2

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