@@ -340,9 +340,9 class RedCloth3 < String | |||||
340 | # |
|
340 | # | |
341 | A_HLGN = /(?:(?:<>|<|>|\=|[()]+)+)/ |
|
341 | A_HLGN = /(?:(?:<>|<|>|\=|[()]+)+)/ | |
342 | A_VLGN = /[\-^~]/ |
|
342 | A_VLGN = /[\-^~]/ | |
343 | C_CLAS = '(?:\([^)]+\))' |
|
343 | C_CLAS = '(?:\([^")]+\))' | |
344 | C_LNGE = '(?:\[[^\[\]]+\])' |
|
344 | C_LNGE = '(?:\[[^"\[\]]+\])' | |
345 | C_STYL = '(?:\{[^}]+\})' |
|
345 | C_STYL = '(?:\{[^"}]+\})' | |
346 | S_CSPN = '(?:\\\\\d+)' |
|
346 | S_CSPN = '(?:\\\\\d+)' | |
347 | S_RSPN = '(?:/\d+)' |
|
347 | S_RSPN = '(?:/\d+)' | |
348 | A = "(?:#{A_HLGN}?#{A_VLGN}?|#{A_VLGN}?#{A_HLGN}?)" |
|
348 | A = "(?:#{A_HLGN}?#{A_VLGN}?|#{A_VLGN}?#{A_HLGN}?)" |
@@ -99,7 +99,7 class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase | |||||
99 | 'p{color:(red)}. text' => '<p>text</p>', |
|
99 | 'p{color:(red)}. text' => '<p>text</p>', | |
100 | 'p{color:red;invalid:blue}. text' => '<p style="color:red;">text</p>', |
|
100 | 'p{color:red;invalid:blue}. text' => '<p style="color:red;">text</p>', | |
101 | 'p{invalid:blue;color:red}. text' => '<p style="color:red;">text</p>', |
|
101 | 'p{invalid:blue;color:red}. text' => '<p style="color:red;">text</p>', | |
102 | 'p{color:"}. text' => '<p>text</p>', |
|
102 | 'p{color:"}. text' => '<p>p{color:"}. text</p>', | |
103 | }, false) |
|
103 | }, false) | |
104 | end |
|
104 | end | |
105 |
|
105 |
General Comments 0
You need to be logged in to leave comments.
Login now