Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대욱
/
My_Project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
김대욱
2020-06-24 14:01:47 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ca75adef263ff7500b51f35438b053f7038df3f3
ca75adef
1 parent
91a509f3
app.js_2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app.js
app.js
View file @
ca75ade
...
...
@@ -33,7 +33,7 @@ var users = {};
var
bans
=
[];
var
uid
=
1
;
var
alphanumeric
=
/^
\w
+$
/
;
var
alphanumeric
=
/^
가-힣
\x
20^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
;
...
...
Please
register
or
login
to post a comment