Project

General

Profile

Patch #7895 ยป source_tag_links.patch

Shane Corgatelli, 2011-03-16 22:51

View differences:

app/helpers/application_helper.rb
647 647
            end
648 648
          when 'source', 'export'
649 649
            if project && project.repository
650
              name =~ %r{^[/\\]*(.*?)(@([0-9a-f]+))?(#(L\d+))?$}
650
              name =~ %r{^[/\\]*(.*?)(@([0-9a-zA-Z_.-]+))?(#(L\d+))?$}
651 651
              path, rev, anchor = $1, $3, $5
652 652
              link = link_to h("#{prefix}:#{name}"), {:controller => 'repositories', :action => 'entry', :id => project,
653 653
                                                      :path => to_path_param(path),
    (1-1/1)