summaryrefslogtreecommitdiffstats
path: root/lib/redcloth3.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-11 16:26:05 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-11-11 16:26:05 +0000
commit737bbb3d3d67d3c30620c0513c95705705a6eb7a (patch)
tree7d1f6a68f0f79114ef13d607b02a18dbe4a4efdc /lib/redcloth3.rb
parent7a05f8ed66918e13315e647ecea620a716c4cbeb (diff)
downloadredmine-737bbb3d3d67d3c30620c0513c95705705a6eb7a.tar.gz
redmine-737bbb3d3d67d3c30620c0513c95705705a6eb7a.zip
Less agressive Redcloth lang attribute parsing (#2091).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2020 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redcloth3.rb')
-rw-r--r--lib/redcloth3.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb
index 220617f14..7898d721f 100644
--- a/lib/redcloth3.rb
+++ b/lib/redcloth3.rb
@@ -341,7 +341,7 @@ class RedCloth3 < String
A_HLGN = /(?:(?:<>|<|>|\=|[()]+)+)/
A_VLGN = /[\-^~]/
C_CLAS = '(?:\([^)]+\))'
- C_LNGE = '(?:\[[^\]]+\])'
+ C_LNGE = '(?:\[[^\[\]]+\])'
C_STYL = '(?:\{[^}]+\})'
S_CSPN = '(?:\\\\\d+)'
S_RSPN = '(?:/\d+)'