diff options
Diffstat (limited to 'apps/workflowengine/src/helpers/validators.js')
-rw-r--r-- | apps/workflowengine/src/helpers/validators.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/workflowengine/src/helpers/validators.js b/apps/workflowengine/src/helpers/validators.js index 4936b9200f7..d64adfa1385 100644 --- a/apps/workflowengine/src/helpers/validators.js +++ b/apps/workflowengine/src/helpers/validators.js @@ -27,24 +27,21 @@ const validateRegex = function(string) { if (!string) { return false } - const result = regexRegex.exec(string) - return result !== null + return regexRegex.exec(string) !== null } const validateIPv4 = function(string) { if (!string) { return false } - const result = regexIPv4.exec(string) - return result !== null + return regexIPv4.exec(string) !== null } const validateIPv6 = function(string) { if (!string) { return false } - const result = regexIPv6.exec(string) - return result !== null + return regexIPv6.exec(string) !== null } const stringValidator = (check) => { |