diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-07-25 12:29:51 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-07-25 12:29:51 +0300 |
commit | d19717cba65ef3ae6f76ec25140ab5c255b27d42 (patch) | |
tree | cd6573c77af34ba085275d95732e7b4a072507fa /app | |
parent | ba997f3c428d94adfc9a2eb4eb0daaa3d759c4df (diff) |
Backport Jira issue key regex
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project_services/jira_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/jira_service.rb b/app/models/project_services/jira_service.rb index 7ab79242cc3..d08fcd8954d 100644 --- a/app/models/project_services/jira_service.rb +++ b/app/models/project_services/jira_service.rb @@ -31,7 +31,7 @@ class JiraService < IssueTrackerService # {PROJECT-KEY}-{NUMBER} Examples: JIRA-1, PROJECT-1 def self.reference_pattern(only_long: true) - @reference_pattern ||= /(?<issue>\b([A-Z][A-Z0-9_]+-)\d+)/ + @reference_pattern ||= /(?<issue>\b#{Gitlab::Regex.jira_issue_key_regex})/ end def initialize_properties |