web-ui: only validate regex for non-number types
@@ -79,8 +79,7 @@ const validateType = (metadata, value) => {
return validationError
}
}
- }
-
+ } else {
const validationErrorMessage = metadata['check/validation/message']
const validationRegex = metadata.hasOwnProperty('check/validation')
@@ -92,6 +91,7 @@ const validateType = (metadata, value) => {
'validation failed for ' + metadata['check/validation']
}
}
+ }
return false
}
