Skip to content

Commit

Permalink
Merge pull request #22988 from nextcloud/backport/22533/stable19
Browse files Browse the repository at this point in the history
[stable19] Flow: do not hide "matches" and "does not match" checkers
  • Loading branch information
rullzer committed Sep 28, 2020
2 parents c091fbd + 83beefc commit bd037f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/workflowengine/js/workflowengine.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/workflowengine/js/workflowengine.js.map

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions apps/workflowengine/src/components/Checks/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') },
]
Expand Down

0 comments on commit bd037f8

Please sign in to comment.