diff --git a/config/filter_config.go b/config/filter_config.go index a571a07b..1da0b6b6 100644 --- a/config/filter_config.go +++ b/config/filter_config.go @@ -158,7 +158,7 @@ func ParseJSONFilterConfigFromType(filterType string, configJSON []byte) (filter } // Reinit the filter so that regex compiles - regexFilter, err := filter.NewRegexBlockEventTypeAndAttributeValueFilter(newFilter.EventTypeRegexPattern, newFilter.Inclusive) + regexFilter, err := filter.NewRegexBlockEventFilter(newFilter.EventTypeRegexPattern, newFilter.Inclusive) if err != nil { return nil, err } diff --git a/filter/static_block_event_filters.go b/filter/static_block_event_filters.go index 0f6d4bb4..060cc396 100644 --- a/filter/static_block_event_filters.go +++ b/filter/static_block_event_filters.go @@ -153,7 +153,7 @@ func NewDefaultBlockEventTypeAndAttributeValueFilter(eventType string, attribute return &DefaultBlockEventTypeAndAttributeValueFilter{EventType: eventType, AttributeKey: attributeKey, AttributeValue: attributeValue, Inclusive: inclusive} } -func NewRegexBlockEventTypeAndAttributeValueFilter(eventTypeRegex string, inclusive bool) (BlockEventFilter, error) { +func NewRegexBlockEventFilter(eventTypeRegex string, inclusive bool) (BlockEventFilter, error) { re, err := regexp.Compile(eventTypeRegex) if err != nil { return nil, err