X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=client%2Fsrc%2Fdata%2FuserCheck.js;h=d6fa7c134a9b44358753919d70bc1a0bd05f1f75;hb=204b0bb5dc8b5f2760fcbf60cc23deb4552f4305;hp=0d3a801bd18e79d461d8e0ee22f25e1c58b1d207;hpb=f0c68a04e31bb6a4b2f8b94a532ef3ca2eebbe3e;p=vchess.git 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") {