Skip to content

Commit 215ed8a

Browse files
committed
Fix a warnine related to regular expression in AppSec
1 parent e239a85 commit 215ed8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datadog/appsec/actions_handler/serializable_backtrace.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module ActionsHandler
1111
#
1212
# It represents the stack trace that is added to span metastruct field.
1313
class SerializableBacktrace
14-
CLASS_AND_FUNCTION_NAME_REGEX = /\b([\w+:{2}]*\w+)?[#|.]?\b(\w+)\z/.freeze
14+
CLASS_AND_FUNCTION_NAME_REGEX = /\b((?:\w+::)*\w+)?[#.]?\b(\w+)\z/.freeze
1515

1616
def initialize(locations:, stack_id:)
1717
@stack_id = stack_id

0 commit comments

Comments
 (0)