]> source.dussan.org Git - redmine.git/commitdiff
Merged r17450 from trunk to 3.4-stable (#29247).
authorGo MAEDA <maeda@farend.jp>
Sat, 21 Jul 2018 00:17:51 +0000 (00:17 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 21 Jul 2018 00:17:51 +0000 (00:17 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17451 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting/textile/redcloth3.rb
test/unit/lib/redmine/wiki_formatting/macros_test.rb

index 7ed29bbd8df60f62aee821c97e3b4406b71b8627..2ac134c0a89a78354f3f82b85d9549ddc4420be5 100644 (file)
@@ -343,7 +343,7 @@ class RedCloth3 < String
     A_VLGN = /[\-^~]/
     C_CLAS = '(?:\([^")]+\))'
     C_LNGE = '(?:\[[a-z\-_]+\])'
-    C_STYL = '(?:\{[^"}]+\})'
+    C_STYL = '(?:\{[^{][^"}]+\})'
     S_CSPN = '(?:\\\\\d+)'
     S_RSPN = '(?:/\d+)'
     A = "(?:#{A_HLGN}?#{A_VLGN}?|#{A_VLGN}?#{A_HLGN}?)"
index 8b6f4497469531ca6bfbce988af2b743bf6020e8..a1d79c164fec85215d8f88e577d52e7dd64f16ed 100644 (file)
@@ -401,4 +401,9 @@ EXPECTED
 
     assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(text).gsub(%r{[\r\n\t]}, '')
   end
+
+  def test_macro_should_support_phrase_modifiers
+    text = "*{{hello_world}}*"
+    assert_match %r|\A<p><strong>Hello world!.*</strong></p>\z|, textilizable(text)
+  end
 end