@@ -655,7 +655,7 module ApplicationHelper | |||||
655 | # identifier:version:1.0.0 |
|
655 | # identifier:version:1.0.0 | |
656 | # identifier:source:some/file |
|
656 | # identifier:source:some/file | |
657 | def parse_redmine_links(text, project, obj, attr, only_path, options) |
|
657 | def parse_redmine_links(text, project, obj, attr, only_path, options) | |
658 | text.gsub!(%r{([\s\(,\-\[\>]|^)(!)?(([a-z0-9\-]+):)?(attachment|document|version|forum|news|message|project|commit|source|export)?(((#)|((([a-z0-9\-]+)\|)?(r)))(\d+)|(:)([^"\s<>][^\s<>]*?|"[^"]+?"))(?=(?=[[:punct:]][^A-Za-z0-9_/])|,|\s|\]|<|$)}) do |m| |
|
658 | text.gsub!(%r{([\s\(,\-\[\>]|^)(!)?(([a-z0-9\-_]+):)?(attachment|document|version|forum|news|message|project|commit|source|export)?(((#)|((([a-z0-9\-]+)\|)?(r)))(\d+)|(:)([^"\s<>][^\s<>]*?|"[^"]+?"))(?=(?=[[:punct:]][^A-Za-z0-9_/])|,|\s|\]|<|$)}) do |m| | |
659 | leading, esc, project_prefix, project_identifier, prefix, repo_prefix, repo_identifier, sep, identifier = $1, $2, $3, $4, $5, $10, $11, $8 || $12 || $14, $13 || $15 |
|
659 | leading, esc, project_prefix, project_identifier, prefix, repo_prefix, repo_identifier, sep, identifier = $1, $2, $3, $4, $5, $10, $11, $8 || $12 || $14, $13 || $15 | |
660 | link = nil |
|
660 | link = nil | |
661 | if project_identifier |
|
661 | if project_identifier |
General Comments 0
You need to be logged in to leave comments.
Login now