Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/atlassian/jira_issue_key_extractor.rb')
-rw-r--r--lib/atlassian/jira_issue_key_extractor.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/atlassian/jira_issue_key_extractor.rb b/lib/atlassian/jira_issue_key_extractor.rb
index 881ba4544b2..17fa40e5676 100644
--- a/lib/atlassian/jira_issue_key_extractor.rb
+++ b/lib/atlassian/jira_issue_key_extractor.rb
@@ -12,7 +12,9 @@ module Atlassian
end
def issue_keys
- @text.scan(@match_regex).flatten.uniq
+ return @text.scan(@match_regex).flatten.uniq if @match_regex.is_a?(Regexp)
+
+ @match_regex.scan(@text).flatten.uniq
end
end
end