diff options
author | marzavec <admin@marzavec.com> | 2019-01-14 03:06:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-14 03:06:00 +0100 |
commit | 7e1c679b0018beccb94ec8231075b7bf63535d70 (patch) | |
tree | 43018d3710bace057be287890dc0672c9934dd69 /client | |
parent | Merge pull request #50 from 4ntil0l/patch-4 (diff) | |
parent | Change verifyNickname to es5 rather than es6. (diff) | |
download | hackchat-7e1c679b0018beccb94ec8231075b7bf63535d70.tar.gz hackchat-7e1c679b0018beccb94ec8231075b7bf63535d70.zip |
Merge pull request #51 from MinusGix/patch-2
Change verifyNickname to es5 rather than es6.
Diffstat (limited to 'client')
-rw-r--r-- | client/client.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/client.js b/client/client.js index 60d9c24..cf6a2e8 100644 --- a/client/client.js +++ b/client/client.js @@ -7,7 +7,9 @@ * */ -const verifyNickname = (nick) => /^[a-zA-Z0-9_]{1,24}$/.test(nick); +var verifyNickname = function (nick) { + return /^[a-zA-Z0-9_]{1,24}$/.test(nick); +} var frontpage = [ " _ _ _ _ ", |