git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@17451
e93f8b46-1217-0410-a6f0-
8f06a7374b81
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}?)"
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