diff --git a/contract/src/main/resources/swagger/kafbat-ui-api.yaml b/contract/src/main/resources/swagger/kafbat-ui-api.yaml index 7b4c65744..8769e6aa1 100644 --- a/contract/src/main/resources/swagger/kafbat-ui-api.yaml +++ b/contract/src/main/resources/swagger/kafbat-ui-api.yaml @@ -4101,7 +4101,6 @@ components: KafkaAclNamePatternType: type: string enum: - - MATCH - LITERAL - PREFIXED diff --git a/frontend/src/components/ACLPage/Form/CustomACL/lib.ts b/frontend/src/components/ACLPage/Form/CustomACL/lib.ts index 3048b6056..b0956d8ae 100644 --- a/frontend/src/components/ACLPage/Form/CustomACL/lib.ts +++ b/frontend/src/components/ACLPage/Form/CustomACL/lib.ts @@ -1,5 +1,4 @@ import { KafkaAcl, KafkaAclNamePatternType } from 'generated-sources'; -import isRegex from 'lib/isRegex'; import { MatchType } from 'components/ACLPage/Form/types'; import { FormValues } from './types'; @@ -8,8 +7,6 @@ export function toRequest(formValue: FormValues): KafkaAcl { let namePatternType: KafkaAclNamePatternType; if (formValue.namePatternType === MatchType.PREFIXED) { namePatternType = KafkaAclNamePatternType.PREFIXED; - } else if (isRegex(formValue.resourceName)) { - namePatternType = KafkaAclNamePatternType.MATCH; } else { namePatternType = KafkaAclNamePatternType.LITERAL; }