diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-02-03 12:29:08 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-02-03 12:29:29 +0300 |
commit | f30e2a6ec7c011d0649aad9f118bf8c5a57ecdbc (patch) | |
tree | 6bb7bdd84cdd4573b58b1a17256bf2c3205b19bb /lib | |
parent | 078689447313a2bd119b9376460272492b055796 (diff) |
Use message_id_regexp variable for the regexp
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8620#note_22021001
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/incoming_email.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/incoming_email.rb b/lib/gitlab/incoming_email.rb index a386d9b36fb..0ea42148c58 100644 --- a/lib/gitlab/incoming_email.rb +++ b/lib/gitlab/incoming_email.rb @@ -35,7 +35,9 @@ module Gitlab end 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 def scan_fallback_references(references) |