fix typo
This commit is contained in:
@@ -30,7 +30,7 @@ On the server, checks are performed to make sure the values are safe, but the ch
|
||||
const { type, program } = req.body;
|
||||
if (
|
||||
typeof type !== "string"
|
||||
|| type.match(/^[a-zA-Z\-/]{3,}$/) === null //<-- Any Alphanumeric(plus dashes) string with length >= 3
|
||||
|| type.match(/^[a-zA-Z\-/]{3,}$/) === null //<-- Any Alphanumeric(plus dashes and slashes) string with length >= 3
|
||||
|| typeof program.name !== "string"
|
||||
|| typeof program.code !== "string"
|
||||
|| program.code.length > 10000
|
||||
|
||||
Reference in New Issue
Block a user