Skip to content

Commit bd037f8

Browse files
authored
Merge pull request #22988 from nextcloud/backport/22533/stable19
[stable19] Flow: do not hide "matches" and "does not match" checkers
2 parents c091fbd + 83beefc commit bd037f8

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

apps/workflowengine/js/workflowengine.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/workflowengine/js/workflowengine.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/workflowengine/src/components/Checks/file.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,14 @@
2020
*
2121
*/
2222

23-
import { stringValidator, validateIPv4, validateIPv6 } from './../../helpers/validators'
23+
import { stringValidator, validateIPv4, validateIPv6 } from '../../helpers/validators'
2424
import FileMimeType from './FileMimeType'
2525
import FileSystemTag from './FileSystemTag'
2626

27-
const stringOrRegexOperators = (check) => {
28-
if (check.value.startsWith('/')) {
29-
return [
30-
{ operator: 'matches', name: t('workflowengine', 'matches') },
31-
{ operator: '!matches', name: t('workflowengine', 'does not match') },
32-
]
33-
}
27+
const stringOrRegexOperators = () => {
3428
return [
29+
{ operator: 'matches', name: t('workflowengine', 'matches') },
30+
{ operator: '!matches', name: t('workflowengine', 'does not match') },
3531
{ operator: 'is', name: t('workflowengine', 'is') },
3632
{ operator: '!is', name: t('workflowengine', 'is not') },
3733
]

0 commit comments

Comments
 (0)