##// END OF EJS Templates
Fixed: RedCloth#block_markdown_rule freezes when parsing many hyphen marks (#1704)....
Jean-Philippe Lang -
r1709:3197814c623f
parent child
Show More
@@ -744,7 +744,7 class RedCloth < String
744 end
744 end
745
745
746 MARKDOWN_RULE_RE = /^(#{
746 MARKDOWN_RULE_RE = /^(#{
747 ['*', '-', '_'].collect { |ch| '( ?' + Regexp::quote( ch ) + ' ?){3,}' }.join( '|' )
747 ['*', '-', '_'].collect { |ch| ' ?(' + Regexp::quote( ch ) + ' ?){3,}' }.join( '|' )
748 })$/
748 })$/
749
749
750 def block_markdown_rule( text )
750 def block_markdown_rule( text )
General Comments 0
You need to be logged in to leave comments. Login now