Skip to content

Commit 991bc7b

Browse files
authored
Merge pull request #617 from ruby/backport-ruby-core
fix regexp introduced at recent RDoc update (r62924).
2 parents e0ae843 + 12e4e75 commit 991bc7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/text.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def strip_stars text
169169

170170
encoding = text.encoding
171171

172-
text = text.gsub %r%Document-method:\s+[\w:.#=!?|^&<>~+-/*\%@`\[\]]+%, ''
172+
text = text.gsub %r%Document-method:\s+[\w:.#=!?|^&<>~+\-/*\%@`\[\]]+%, ''
173173

174174
space = ' '
175175
space = RDoc::Encoding.change_encoding space, encoding if encoding

0 commit comments

Comments
 (0)