aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src/helpers/validators.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-10-11 15:05:58 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2019-10-29 18:03:55 +0100
commitfce33f39d3a5459ac98662c799ad4eee41fa98bf (patch)
treeee6807f13400e103eba5403ce5bb8450d45d7c2d /apps/workflowengine/src/helpers/validators.js
parent0fccda86c2dd4abff2e24f1f397ed900b090af1b (diff)
downloadnextcloud-server-fce33f39d3a5459ac98662c799ad4eee41fa98bf.tar.gz
nextcloud-server-fce33f39d3a5459ac98662c799ad4eee41fa98bf.zip
Fix operation list when scope is limited
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine/src/helpers/validators.js')
-rw-r--r--apps/workflowengine/src/helpers/validators.js9
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) => {