summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-15 16:10:55 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-05-26 15:49:22 -0400
commit1a9da9178cfd25190997b621e428a5c7ce467cd1 (patch)
treea5edb5df2ba7d76e9fdc29e7eb7615e60fbb404a /app/models/issue.rb
parent5cc9b17b8a7d7a8081fa60ea75f6cf423fbddbc5 (diff)
downloadgitlab-ce-1a9da9178cfd25190997b621e428a5c7ce467cd1.tar.gz
Surround Project.reference_pattern in parenthesis inside other patterns
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index ea6b9329b07..2456b7d0dc1 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -63,7 +63,7 @@ class Issue < ActiveRecord::Base
# This pattern supports cross-project references.
def self.reference_pattern
%r{
- #{Project.reference_pattern}?
+ (#{Project.reference_pattern})?
#{Regexp.escape(reference_prefix)}(?<issue>\d+)
}x
end