@@ -791,7 +791,10 class RedCloth3 < String | |||
|
791 | 791 | \s? |
|
792 | 792 | (?:\(([^)]+?)\)(?="))? # $title |
|
793 | 793 | ": |
|
794 |
( |
|
|
794 | ( # $url | |
|
795 | (\/|https?:\/\/|s?ftps?:\/\/|www\.) | |
|
796 | [\w\/]\S+? | |
|
797 | ) | |
|
795 | 798 | (\/)? # $slash |
|
796 | 799 | ([^\w\=\/;\(\)]*?) # $post |
|
797 | 800 | (?=<|\s|$) |
@@ -799,7 +802,7 class RedCloth3 < String | |||
|
799 | 802 | #" |
|
800 | 803 | def inline_textile_link( text ) |
|
801 | 804 | text.gsub!( LINK_RE ) do |m| |
|
802 |
pre,atts,text,title,url,slash,post = $~[1.. |
|
|
805 | pre,atts,text,title,url,proto,slash,post = $~[1..8] | |
|
803 | 806 | |
|
804 | 807 | url, url_title = check_refs( url ) |
|
805 | 808 | title ||= url_title |
General Comments 0
You need to be logged in to leave comments.
Login now