Displaying 1 result from an estimated 1 matches for "alltag_match".
2006 Aug 28
0
bug / infinite loop
...ease
something soon because it''s really nasty.
--
http://penso.info/
-------------- next part --------------
--- redcloth.rb.old 2006-08-28 15:13:55.000000000 +0200
+++ redcloth.rb 2006-08-28 15:14:35.000000000 +0200
@@ -980,7 +980,10 @@
HASTAG_MATCH = /(<\/?\w[^\n]*?>)/m
ALLTAG_MATCH = /(<\/?\w[^\n]*?>)|.*?(?=<\/?\w[^\n]*?>|$)/m
- def glyphs_textile( text, level = 0 )
+ def glyphs_textile( text, level = 50 )
+ if level < 0
+ return
+ end
if text !~ HASTAG_MATCH
pgl text
footnote_ref text
@@ -996,7 +999,7 @@...