https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292018-09-12T12:00:00ZRedmineRedmine - Feature #29595: Hyperlinks with dash | m-files://https://www.redmine.org/issues/29595?journal_id=872012018-09-12T12:00:00ZM F
<ul><li><strong>File</strong> <a href="/attachments/21410">wiki_formatting.rb</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/21410/wiki_formatting.rb">wiki_formatting.rb</a> added</li></ul><p>Edited: redmine/lib/redmine/wiki_formatting.rb and when you paste just <br /><pre>
m-files://show/1481067C-D3D8-465B-BE1D-1FC924913B39/0-147851?object=A6DD4B88-47CF-44A8-91AD-35411808231A
</pre><br />it makes hyperlink</p>
<p>Change: <br /><pre>
module LinksHelper
AUTO_LINK_RE = %r{
( # leading text
<\w+[^>]*?>| # leading HTML tag, or
[\s\(\[,;]| # leading punctuation, or
^ # beginning of line
)
(
(?:https?://)| # protocol spec, or
(?:s?ftps?://)|
(?:m-files?://)| # m-files
(?:www\.) # www.*
)
(
([^<]\S*?) # url
(\/)? # slash
)
((?:&gt;)?|[^[:alnum:]_\=\/;\(\)]*?) # post
(?=<|\s|$)
}x unless const_defined?(:AUTO_LINK_RE)
</pre><br />And how to support "Title":url syntax?<br />btw: do I need to "bundle install" each time I edit source code?</p>