@@ -541,7 +541,7 module ApplicationHelper | |||
|
541 | 541 | # Forum messages: |
|
542 | 542 | # message#1218 -> Link to message with id 1218 |
|
543 | 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 | 545 | leading, esc, prefix, sep, identifier = $1, $2, $3, $5 || $7, $6 || $8 |
|
546 | 546 | link = nil |
|
547 | 547 | if esc.nil? |
@@ -158,7 +158,7 RAW | |||
|
158 | 158 | |
|
159 | 159 | to_test = { |
|
160 | 160 | # tickets |
|
161 |
'#3, #3 and #3.' |
|
|
161 | '#3, [#3], (#3) and #3.' => "#{issue_link}, [#{issue_link}], (#{issue_link}) and #{issue_link}.", | |
|
162 | 162 | # changesets |
|
163 | 163 | 'r1' => changeset_link, |
|
164 | 164 | 'r1.' => "#{changeset_link}.", |
General Comments 0
You need to be logged in to leave comments.
Login now