diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-25 11:43:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-05-25 11:43:20 +0000 |
commit | e8d092e46ad8c77419792cc5b418251a1c0a09c6 (patch) | |
tree | e124273904e4cc0f7b862297025e05e21ed25257 /app/models/changeset.rb | |
parent | 39fc8f38b8695820101149228f03de9638e19228 (diff) | |
download | redmine-e8d092e46ad8c77419792cc5b418251a1c0a09c6.tar.gz redmine-e8d092e46ad8c77419792cc5b418251a1c0a09c6.zip |
Fixed: using '*' as keyword for repository referencing keywords doesn't work when issue id is at the beginning of a line (#1253).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1451 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/changeset.rb')
-rw-r--r-- | app/models/changeset.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 9a05e6a68..41f5ed86a 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -75,7 +75,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 |