aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarzavec <admin@marzavec.com>2019-01-14 03:06:00 +0100
committerGitHub <noreply@github.com>2019-01-14 03:06:00 +0100
commit7e1c679b0018beccb94ec8231075b7bf63535d70 (patch)
tree43018d3710bace057be287890dc0672c9934dd69
parentMerge pull request #50 from 4ntil0l/patch-4 (diff)
parentChange verifyNickname to es5 rather than es6. (diff)
downloadhackchat-7e1c679b0018beccb94ec8231075b7bf63535d70.tar.gz
hackchat-7e1c679b0018beccb94ec8231075b7bf63535d70.zip
Merge pull request #51 from MinusGix/patch-2
Change verifyNickname to es5 rather than es6.
-rw-r--r--client/client.js4
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 = [
" _ _ _ _ ",