Skip to content

Commit a56019b

Browse files
ioquatixst0012
andauthored
Update lib/rdoc/markup/heading.rb
Co-authored-by: Stan Lo <[email protected]>
1 parent 9ef4934 commit a56019b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rdoc/markup/heading.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def label context = nil
6868
def plain_html
6969
text = self.text.dup
7070

71-
if text.match?(/rdoc-image:[^:]+:(.*)/)
72-
text = text.match(/rdoc-image:[^:]+:(.*)/)[1]
71+
if matched = text.match(/rdoc-image:[^:]+:(.*)/)
72+
text = matched[1]
7373
end
7474

7575
self.class.to_html.to_html(text)

0 commit comments

Comments
 (0)