Merge pull request #22988 from nextcloud/backport/22533/stable19
[stable19] Flow: do not hide "matches" and "does not match" checkers
This commit is contained in:
commit
bd037f8298
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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('/')) {
|
||||
const stringOrRegexOperators = () => {
|
||||
return [
|
||||
{ operator: 'matches', name: t('workflowengine', 'matches') },
|
||||
{ operator: '!matches', name: t('workflowengine', 'does not match') },
|
||||
]
|
||||
}
|
||||
return [
|
||||
{ operator: 'is', name: t('workflowengine', 'is') },
|
||||
{ operator: '!is', name: t('workflowengine', 'is not') },
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue