Skip to content

Commit 50b7130

Browse files
committed
endless ranges get added in 2.6 so gotta use -1 for 2.5
Signed-off-by: Amndeep Singh Mann <[email protected]>
1 parent 9bd66bd commit 50b7130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/heimdall_tools/asff_compatible_products/securityhub.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def self.finding_nist_tag(finding, *, aws_config_mapping:, **)
6060
if (i = tag.index('(')).nil?
6161
tag
6262
else
63-
tag[i..].scan(/\(.+?\)/).map { |subheading| "#{tag[0..i-1]}#{subheading}" }
63+
tag[i..-1].scan(/\(.+?\)/).map { |subheading| "#{tag[0..i-1]}#{subheading}" }
6464
end
6565
end
6666
end.flatten.uniq

0 commit comments

Comments
 (0)