summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorMatthias Baur <m.baur@syseleven.de>2019-06-03 14:52:54 +0200
committerMatthias Baur <m.baur@syseleven.de>2019-06-03 16:05:20 +0200
commite8683efea5aaed0c8c4b6efc75395372a3a3662b (patch)
tree5c63a5f07627e5d3759c4b3fe29bdb1848f7d66d /app/models
parent205f0d0cfe7ff47ead965ff120599dc3f2453974 (diff)
downloadgitlab-ce-e8683efea5aaed0c8c4b6efc75395372a3a3662b.tar.gz
Allow lowercase prefix for Youtrack issue ids
Relates to #42595. Fixes #62661.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project_services/youtrack_service.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/project_services/youtrack_service.rb b/app/models/project_services/youtrack_service.rb
index 957be685aea..175c2ebf197 100644
--- a/app/models/project_services/youtrack_service.rb
+++ b/app/models/project_services/youtrack_service.rb
@@ -5,12 +5,12 @@ class YoutrackService < IssueTrackerService
prop_accessor :description, :project_url, :issues_url
- # {PROJECT-KEY}-{NUMBER} Examples: YT-1, PRJ-1
+ # {PROJECT-KEY}-{NUMBER} Examples: YT-1, PRJ-1, gl-030
def self.reference_pattern(only_long: false)
if only_long
- /(?<issue>\b[A-Z][A-Za-z0-9_]*-\d+)/
+ /(?<issue>\b[A-Za-z][A-Za-z0-9_]*-\d+)/
else
- /(?<issue>\b[A-Z][A-Za-z0-9_]*-\d+)|(#{Issue.reference_prefix}(?<issue>\d+))/
+ /(?<issue>\b[A-Za-z][A-Za-z0-9_]*-\d+)|(#{Issue.reference_prefix}(?<issue>\d+))/
end
end