projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always show challenge button in Hall, colored if focused
[vchess.git]
/
client
/
src
/
data
/
userCheck.js
diff --git
a/client/src/data/userCheck.js
b/client/src/data/userCheck.js
index
0d3a801
..
d6fa7c1
100644
(file)
--- 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";
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") {
}
if (typeof o.email === "string") {