Defect #29247 ยป 29247.patch
| lib/redmine/wiki_formatting/textile/redcloth3.rb | ||
|---|---|---|
|
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}?)"
|
||
| test/unit/lib/redmine/wiki_formatting/macros_test.rb | ||
|---|---|---|
|
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
|
||