File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
lib/msf/util/document_generator
spec/lib/msf/util/document_generator Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ def normalize_pull_requests(pull_requests)
144
144
formatted_pr = [ ]
145
145
146
146
pull_requests . each_pair do |number , pr |
147
- formatted_pr << "* <a href= \" https://github.com/rapid7/metasploit-framework/pull/#{ number } \" ># #{ number } </a> - #{ pr [ :title ] } "
147
+ formatted_pr << "* [# #{ number } #{ pr [ :title ] } ]( https://github.com/rapid7/metasploit-framework/pull/#{ number } ) "
148
148
end
149
149
150
150
formatted_pr * "\n "
@@ -223,6 +223,7 @@ def normalize_references(refs)
223
223
normalized
224
224
end
225
225
226
+
226
227
# Returns the markdown format for module platforms.
227
228
#
228
229
# @param platforms [Array, String] Module platforms.
Original file line number Diff line number Diff line change 112
112
describe 'normalize_pull_requests' do
113
113
context 'when a hash of pull requests are given' do
114
114
it 'returns HTML links' do
115
- expect ( subject . send ( :normalize_pull_requests , good_pull_requests ) ) . to include ( '* <a href= ' )
115
+ expect ( subject . send ( :normalize_pull_requests , good_pull_requests ) ) . to include ( '](https://github.com/ ' )
116
116
end
117
117
end
118
118
You can’t perform that action at this time.
0 commit comments