Skip to content

Commit fda0cae

Browse files
authored
Merge pull request #4548 from DataDog/appsec-fix-regex-warning
Fix a warning related to regular expression in AppSec
2 parents e239a85 + 48f0a70 commit fda0cae

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)