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