Defect #12979 ยป REDMINE_LINK_TO_COMMIT.diff
app/helpers/application_helper.rb | ||
---|---|---|
748 | 748 |
when 'commit', 'source', 'export' |
749 | 749 |
if project |
750 | 750 |
repository = nil |
751 |
if name =~ %r{^(([a-z0-9\-]+)\|)(.+)$} |
|
751 |
if name =~ %r{^(([a-z0-9\-\_]+)\|)(.+)$}
|
|
752 | 752 |
repo_prefix, repo_identifier, name = $1, $2, $3 |
753 | 753 |
repository = project.repositories.detect {|repo| repo.identifier == repo_identifier} |
754 | 754 |
else |