Skip to content

Commit 7c1f8c9

Browse files
committed
beep beep rubocop
1 parent e8cc21a commit 7c1f8c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/new_relic/agent.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def set_error_group_callback(callback_proc)
486486
# @api public
487487
#
488488
def record_custom_event(event_type, event_attrs)
489-
unless event_type =~ VALID_CUSTOM_EVENT_TYPE
489+
unless event_type.match?(VALID_CUSTOM_EVENT_TYPE)
490490
raise ArgumentError, "Invalid event_type: '#{event_type}'. Event types must consist of only alphanumeric characters, '_', ':', or ' '."
491491
end
492492

0 commit comments

Comments
 (0)