Skip to content

Commit f72b3fa

Browse files
committed
standard
1 parent 6d013f4 commit f72b3fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/datadog/di/code_tracker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def iseqs_for_path_suffix(suffix)
155155
return inexact.first
156156
end
157157
return nil unless suffix.include?('/')
158-
suffix.sub!(%r,.*/+,, '')
158+
suffix.sub!(%r{.*/+}, '')
159159
end
160160
end
161161
end

lib/datadog/di/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ module Utils
128128
spec = spec.dup
129129
loop do
130130
return false unless spec.include?('/')
131-
spec.sub!(%r,.*/+,, '')
131+
spec.sub!(%r{.*/+}, '')
132132
return true if path_matches_suffix?(path, spec)
133133
end
134134
end

0 commit comments

Comments
 (0)