aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/src
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/src')
-rw-r--r--apps/workflowengine/src/components/Checks/file.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/workflowengine/src/components/Checks/file.js b/apps/workflowengine/src/components/Checks/file.js
index ee6a476a3a1..26c246be591 100644
--- a/apps/workflowengine/src/components/Checks/file.js
+++ b/apps/workflowengine/src/components/Checks/file.js
@@ -20,18 +20,14 @@
*
*/
-import { stringValidator, validateIPv4, validateIPv6 } from './../../helpers/validators'
+import { stringValidator, validateIPv4, validateIPv6 } from '../../helpers/validators'
import FileMimeType from './FileMimeType'
import FileSystemTag from './FileSystemTag'
-const stringOrRegexOperators = (check) => {
- if (check.value.startsWith('/')) {
- return [
- { operator: 'matches', name: t('workflowengine', 'matches') },
- { operator: '!matches', name: t('workflowengine', 'does not match') },
- ]
- }
+const stringOrRegexOperators = () => {
return [
+ { operator: 'matches', name: t('workflowengine', 'matches') },
+ { operator: '!matches', name: t('workflowengine', 'does not match') },
{ operator: 'is', name: t('workflowengine', 'is') },
{ operator: '!is', name: t('workflowengine', 'is not') },
]