@@ -786,7 +786,7 class RedCloth < String | |||
|
786 | 786 | \s? |
|
787 | 787 | (?:\(([^)]+?)\)(?="))? # $title |
|
788 | 788 | ": |
|
789 |
(\S+?) |
|
|
789 | ([\w\/]\S+?) # $url | |
|
790 | 790 | (\/)? # $slash |
|
791 | 791 | ([^\w\/;]*?) # $post |
|
792 | 792 | (?=<|\s|$) |
@@ -59,6 +59,7 class ApplicationHelperTest < HelperTestCase | |||
|
59 | 59 | 'This is a "link":http://foo.bar' => 'This is a <a href="http://foo.bar" class="external">link</a>', |
|
60 | 60 | 'This is an intern "link":/foo/bar' => 'This is an intern <a href="/foo/bar">link</a>', |
|
61 | 61 | '"link (Link title)":http://foo.bar' => '<a href="http://foo.bar" title="Link title" class="external">link</a>', |
|
62 | "This is not a \"Link\":\n\nAnother paragraph" => "This is not a \"Link\":</p>\n\n\n\t<p>Another paragraph", | |
|
62 | 63 | # no multiline link text |
|
63 | 64 | "This is a double quote \"on the first line\nand another on a second line\":test" => "This is a double quote \"on the first line<br />\nand another on a second line\":test" |
|
64 | 65 | } |
General Comments 0
You need to be logged in to leave comments.
Login now