if (isNaN(vid) || vid <= 0)
return "Please select a variant";
- const tc = extractTime(c.timeControl);
+ const tc = extractTime(c.cadence);
if (!tc)
return "Wrong time control";
// Basic alphanumeric check for opponent name
if (!!c.to)
{
- // TODO: slightly redundant (see data/userCheck.js)
+ // NOTE: slightly redundant (see data/userCheck.js)
if (!c.to.match(/^[\w]+$/))
return "Wrong characters in opponent name";
}