Skip to content
Snippets Groups Projects
Commit de5c2644 authored by Severine Duvaud's avatar Severine Duvaud
Browse files

Fixed tests for length and maxLength

parent c431628a
Branches
No related tags found
No related merge requests found
......@@ -70,14 +70,14 @@ function checkPreconditions(params) {
};
}
if (!Number(params.length)) {
if (params.length && !Number(params.length)) {
return {
hasError: true,
msg: "min. length not a number"
};
}
if (!Number(params.maxLength)) {
if (params.maxLength && !Number(params.maxLength)) {
return {
hasError: true,
msg: "max length not a number"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment