diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-07-04 12:48:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-07-04 12:48:25 +0000 |
commit | da22a9c8d653fb969bf10bdd7e0746d603a752b4 (patch) | |
tree | 342b0e5e62b593ed5a75043685f4f09502e3af88 /app | |
parent | 5afa190a9ab93f7a7b40da4e1fd6be7633dab9ce (diff) | |
download | redmine-da22a9c8d653fb969bf10bdd7e0746d603a752b4.tar.gz redmine-da22a9c8d653fb969bf10bdd7e0746d603a752b4.zip |
Do not require a non-word character after a comma in Redmine links (#3561).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2804 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fd070de3a..573d49c45 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -441,7 +441,7 @@ module ApplicationHelper # export:some/file -> Force the download of the file # Forum messages: # message#1218 -> Link to message with id 1218 - text = text.gsub(%r{([\s\(,\-\>]|^)(!)?(attachment|document|version|commit|source|export|message)?((#|r)(\d+)|(:)([^"\s<>][^\s<>]*?|"[^"]+?"))(?=(?=[[:punct:]]\W)|\s|<|$)}) do |m| + text = text.gsub(%r{([\s\(,\-\>]|^)(!)?(attachment|document|version|commit|source|export|message)?((#|r)(\d+)|(:)([^"\s<>][^\s<>]*?|"[^"]+?"))(?=(?=[[:punct:]]\W)|,|\s|<|$)}) do |m| leading, esc, prefix, sep, oid = $1, $2, $3, $5 || $7, $6 || $8 link = nil if esc.nil? |