Do not recognize invalid textile attributes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8902 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e484eb2dc8
commit
37575f27fe
|
@ -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}?)"
|
||||
|
|
|
@ -99,7 +99,7 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
|
|||
'p{color:(red)}. text' => '<p>text</p>',
|
||||
'p{color:red;invalid:blue}. text' => '<p style="color:red;">text</p>',
|
||||
'p{invalid:blue;color:red}. text' => '<p style="color:red;">text</p>',
|
||||
'p{color:"}. text' => '<p>text</p>',
|
||||
'p{color:"}. text' => '<p>p{color:"}. text</p>',
|
||||
}, false)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue