X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fdata%2FuserCheck.js;h=4c714a681099df906184d7dbe800a4bc27d23031;hb=9d58ef95e3affd799571838164f7c5bbfda11f64;hp=65ed1db8a12e848edb04b57dd62b562d3c4dcf93;hpb=5d3e317ac0e2bc7a6575768ddb972b35e8680bc8;p=vchess.git diff --git a/client/src/data/userCheck.js b/client/src/data/userCheck.js index 65ed1db8..4c714a68 100644 --- a/client/src/data/userCheck.js +++ b/client/src/data/userCheck.js @@ -1,4 +1,4 @@ -function checkNameEmail(o) +export function checkNameEmail(o) { if (typeof o.name === "string") { @@ -15,5 +15,3 @@ function checkNameEmail(o) return "Bad characters in email"; } } - -try { module.exports = checkNameEmail; } catch(e) { } //for server