@@ -113,12 +113,9 module Redmine | |||||
113 |
|
113 | |||
114 | # Destructively replaces urls into clickable links |
|
114 | # Destructively replaces urls into clickable links | |
115 | def auto_link!(text) |
|
115 | def auto_link!(text) | |
116 | Rails.logger.debug "=====================" |
|
|||
117 | Rails.logger.debug text |
|
116 | Rails.logger.debug text | |
118 | Rails.logger.debug "=====================" |
|
|||
119 | text.gsub!(AUTO_LINK_RE) do |
|
117 | text.gsub!(AUTO_LINK_RE) do | |
120 | all, leading, proto, url, post = $&, $1, $2, $3, $6 |
|
118 | all, leading, proto, url, post = $&, $1, $2, $3, $6 | |
121 | Rails.logger.debug all |
|
|||
122 | if leading =~ /<a\s/i || leading =~ /![<>=]?/ |
|
119 | if leading =~ /<a\s/i || leading =~ /![<>=]?/ | |
123 | # don't replace URLs that are already linked |
|
120 | # don't replace URLs that are already linked | |
124 | # and URLs prefixed with ! !> !< != (textile images) |
|
121 | # and URLs prefixed with ! !> !< != (textile images) |
General Comments 0
You need to be logged in to leave comments.
Login now