Merge branch 'dev' of http://git.verdnatura.es/salix into dev
This commit is contained in:
commit
e019731ffb
|
@ -14,8 +14,8 @@ export const validators = {
|
|||
min: conf.min || conf.is,
|
||||
max: conf.max || conf.is
|
||||
};
|
||||
|
||||
if (!validator.isLength(value, options)) {
|
||||
let val = String(value);
|
||||
if (!validator.isLength(val, options)) {
|
||||
if (conf.is) {
|
||||
throw new Error(`Value should be ${conf.is} characters long`);
|
||||
} else if (conf.min && conf.max) {
|
||||
|
|
Loading…
Reference in New Issue