mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
Merge pull request #51 from MinusGix/patch-2
Change verifyNickname to es5 rather than es6.
This commit is contained in:
commit
7e1c679b00
|
@ -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 = [
|
var frontpage = [
|
||||||
" _ _ _ _ ",
|
" _ _ _ _ ",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user