@@ -541,7 +541,7 module ApplicationHelper | |||||
541 | # Forum messages: |
|
541 | # Forum messages: | |
542 | # message#1218 -> Link to message with id 1218 |
|
542 | # message#1218 -> Link to message with id 1218 | |
543 | def parse_redmine_links(text, project, obj, attr, only_path, options) |
|
543 | def parse_redmine_links(text, project, obj, attr, only_path, options) | |
544 | text.gsub!(%r{([\s\(,\-\>]|^)(!)?(attachment|document|version|commit|source|export|message|project)?((#|r)(\d+)|(:)([^"\s<>][^\s<>]*?|"[^"]+?"))(?=(?=[[:punct:]]\W)|,|\s|<|$)}) do |m| |
|
544 | text.gsub!(%r{([\s\(,\-\[\>]|^)(!)?(attachment|document|version|commit|source|export|message|project)?((#|r)(\d+)|(:)([^"\s<>][^\s<>]*?|"[^"]+?"))(?=(?=[[:punct:]]\W)|,|\s|\]|<|$)}) do |m| | |
545 | leading, esc, prefix, sep, identifier = $1, $2, $3, $5 || $7, $6 || $8 |
|
545 | leading, esc, prefix, sep, identifier = $1, $2, $3, $5 || $7, $6 || $8 | |
546 | link = nil |
|
546 | link = nil | |
547 | if esc.nil? |
|
547 | if esc.nil? |
@@ -158,7 +158,7 RAW | |||||
158 |
|
158 | |||
159 | to_test = { |
|
159 | to_test = { | |
160 | # tickets |
|
160 | # tickets | |
161 |
'#3, #3 and #3.' |
|
161 | '#3, [#3], (#3) and #3.' => "#{issue_link}, [#{issue_link}], (#{issue_link}) and #{issue_link}.", | |
162 | # changesets |
|
162 | # changesets | |
163 | 'r1' => changeset_link, |
|
163 | 'r1' => changeset_link, | |
164 | 'r1.' => "#{changeset_link}.", |
|
164 | 'r1.' => "#{changeset_link}.", |
General Comments 0
You need to be logged in to leave comments.
Login now