]> source.dussan.org Git - redmine.git/commitdiff
Merged r8902 from trunk.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 17 Feb 2012 22:37:03 +0000 (22:37 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 17 Feb 2012 22:37:03 +0000 (22:37 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@8903 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redcloth3.rb

index d09804f41653f13464341012938e09dc8909a601..117b64b259296ed080c30ff2865bee2eab9dc345 100644 (file)
@@ -340,9 +340,9 @@ class RedCloth3 < String
     #
     A_HLGN = /(?:(?:<>|<|>|\=|[()]+)+)/
     A_VLGN = /[\-^~]/
-    C_CLAS = '(?:\([^)]+\))'
-    C_LNGE = '(?:\[[^\[\]]+\])'
-    C_STYL = '(?:\{[^}]+\})'
+    C_CLAS = '(?:\([^")]+\))'
+    C_LNGE = '(?:\[[^"\[\]]+\])'
+    C_STYL = '(?:\{[^"}]+\})'
     S_CSPN = '(?:\\\\\d+)'
     S_RSPN = '(?:/\d+)'
     A = "(?:#{A_HLGN}?#{A_VLGN}?|#{A_VLGN}?#{A_HLGN}?)"