Skip to content

Commit

Permalink
Rename misnamed function
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Dec 16, 2023
1 parent 92f719c commit 285dae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/filter_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion filter/static_block_event_filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 285dae4

Please sign in to comment.