summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-09-03 01:21:11 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-09-03 01:21:11 +0000
commit609faba6a3d326fe8d2ebe3f66d2f31da3faa77f (patch)
treeabce7f997ac5bfec019efff58fbd39a3d3af4c5c /app
parentcd1e094ce8bc42836f1a13de52040a1b969a82a3 (diff)
downloadredmine-609faba6a3d326fe8d2ebe3f66d2f31da3faa77f.tar.gz
redmine-609faba6a3d326fe8d2ebe3f66d2f31da3faa77f.zip
Allow referencing issue numbers in brackets. This style is used by other
bug trackers. Examples: * "[#nnn] Worked on this issue" * "[#nnn, #mmm] Worked on these" * "[#nnn #mmm] Working some more" git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2854 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/changeset.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb
index d076b307b..336632afd 100644
--- a/app/models/changeset.rb
+++ b/app/models/changeset.rb
@@ -89,7 +89,7 @@ class Changeset < ActiveRecord::Base
if ref_keywords.delete('*')
# find any issue ID in the comments
target_issue_ids = []
- comments.scan(%r{([\s\(,-]|^)#(\d+)(?=[[:punct:]]|\s|<|$)}).each { |m| target_issue_ids << m[1] }
+ comments.scan(%r{([\s\(\[,-]|^)#(\d+)(?=[[:punct:]]|\s|<|$)}).each { |m| target_issue_ids << m[1] }
referenced_issues += repository.project.issues.find_all_by_id(target_issue_ids)
end