X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fdata%2FuserCheck.js;h=d6fa7c134a9b44358753919d70bc1a0bd05f1f75;hp=0d3a801bd18e79d461d8e0ee22f25e1c58b1d207;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hpb=9edfb7146fdc4dd08914b2a117d2852e705353aa diff --git a/client/src/data/userCheck.js b/client/src/data/userCheck.js index 0d3a801b..d6fa7c13 100644 --- a/client/src/data/userCheck.js +++ b/client/src/data/userCheck.js @@ -1,7 +1,8 @@ export function checkNameEmail(o) { if (typeof o.name === "string") { if (o.name.length == 0) return "Missing name"; - if (!o.name.match(/^[\w-]+$/)) return "Name: alphanumerics, hyphen and underscore"; + if (!o.name.match(/^[\w-]+$/)) + return "Name: alphanumerics, hyphen and underscore"; } if (typeof o.email === "string") {