-export function checkNameEmail(o)
-{
- if (typeof o.name === "string")
- {
- if (o.name.length == 0)
- return "Empty name";
- if (!o.name.match(/^[\w]+$/))
- return "Bad characters in name";
+export function checkNameEmail(o) {
+ if (typeof o.name === "string") {
+ if (o.name.length == 0) return "Empty name";
+ if (!o.name.match(/^[\w]+$/)) return "Name: alphanumerics and underscore";