@@ -129,6 +129,7 module Redmine | |||||
129 | ) |
|
129 | ) | |
130 | ( |
|
130 | ( | |
131 | (?:https?://)| # protocol spec, or |
|
131 | (?:https?://)| # protocol spec, or | |
|
132 | (?:ftp://)| | |||
132 | (?:www\.) # www.* |
|
133 | (?:www\.) # www.* | |
133 | ) |
|
134 | ) | |
134 | ( |
|
135 | ( |
@@ -36,6 +36,7 class ApplicationHelperTest < HelperTestCase | |||||
36 | 'http://foo.bar/page?p=1&t=z&s=' => '<a class="external" href="http://foo.bar/page?p=1&t=z&s=">http://foo.bar/page?p=1&t=z&s=</a>', |
|
36 | 'http://foo.bar/page?p=1&t=z&s=' => '<a class="external" href="http://foo.bar/page?p=1&t=z&s=">http://foo.bar/page?p=1&t=z&s=</a>', | |
37 | 'http://foo.bar/page#125' => '<a class="external" href="http://foo.bar/page#125">http://foo.bar/page#125</a>', |
|
37 | 'http://foo.bar/page#125' => '<a class="external" href="http://foo.bar/page#125">http://foo.bar/page#125</a>', | |
38 | 'http://foo@www.bar.com' => '<a class="external" href="http://foo@www.bar.com">http://foo@www.bar.com</a>', |
|
38 | 'http://foo@www.bar.com' => '<a class="external" href="http://foo@www.bar.com">http://foo@www.bar.com</a>', | |
|
39 | 'ftp://foo.bar' => '<a class="external" href="ftp://foo.bar">ftp://foo.bar</a>', | |||
39 | } |
|
40 | } | |
40 | to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text) } |
|
41 | to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text) } | |
41 | end |
|
42 | end |
General Comments 0
You need to be logged in to leave comments.
Login now