@@ -786,7 +786,7 class RedCloth < String | |||||
786 | \s? |
|
786 | \s? | |
787 | (?:\(([^)]+?)\)(?="))? # $title |
|
787 | (?:\(([^)]+?)\)(?="))? # $title | |
788 | ": |
|
788 | ": | |
789 |
(\S+?) |
|
789 | ([\w\/]\S+?) # $url | |
790 | (\/)? # $slash |
|
790 | (\/)? # $slash | |
791 | ([^\w\/;]*?) # $post |
|
791 | ([^\w\/;]*?) # $post | |
792 | (?=<|\s|$) |
|
792 | (?=<|\s|$) |
@@ -59,6 +59,7 class ApplicationHelperTest < HelperTestCase | |||||
59 | 'This is a "link":http://foo.bar' => 'This is a <a href="http://foo.bar" class="external">link</a>', |
|
59 | 'This is a "link":http://foo.bar' => 'This is a <a href="http://foo.bar" class="external">link</a>', | |
60 | 'This is an intern "link":/foo/bar' => 'This is an intern <a href="/foo/bar">link</a>', |
|
60 | 'This is an intern "link":/foo/bar' => 'This is an intern <a href="/foo/bar">link</a>', | |
61 | '"link (Link title)":http://foo.bar' => '<a href="http://foo.bar" title="Link title" class="external">link</a>', |
|
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 | # no multiline link text |
|
63 | # no multiline link text | |
63 | "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 | "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