mirror of https://gitee.com/bigwinds/arangodb
fixed validation rules
This commit is contained in:
parent
8e0641b70f
commit
49cb009186
|
@ -720,8 +720,8 @@
|
|||
validateInput: function() {
|
||||
return [
|
||||
{
|
||||
rule: Joi.string().required().regex(/^[a-zA-Z]+$/),
|
||||
msg: "Can only contain a to z or A to Z."
|
||||
rule: Joi.string().required().regex(/^[a-zA-Z-_][a-zA-Z0-9-_]*$/),
|
||||
msg: "Can only contain a to z, A to Z, 0-9, '-' and '_'."
|
||||
}
|
||||
];
|
||||
}
|
||||
|
@ -744,7 +744,7 @@
|
|||
validateInput: function() {
|
||||
return [
|
||||
{
|
||||
rule: Joi.string().required().regex(/^[a-zA-Z]+$/),
|
||||
rule: Joi.string().required().regex(/^[a-zA-Z0-9 .,;-]+$/),
|
||||
msg: "Has to be non empty."
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue