Commit f30e2a6e authored by Lin Jen-Shin's avatar Lin Jen-Shin

Use message_id_regexp variable for the regexp

Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8620#note_22021001
parent 07868944
...@@ -35,7 +35,9 @@ module Gitlab ...@@ -35,7 +35,9 @@ module Gitlab
end end
def key_from_fallback_message_id(mail_id) def key_from_fallback_message_id(mail_id)
mail_id[/\Areply\-(.+)@#{Gitlab.config.gitlab.host}\z/, 1] message_id_regexp = /\Areply\-(.+)@#{Gitlab.config.gitlab.host}\z/
mail_id[message_id_regexp, 1]
end end
def scan_fallback_references(references) def scan_fallback_references(references)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment