Skip to content
Snippets Groups Projects
Commit f30e2a6e authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Use message_id_regexp variable for the regexp

parent 07868944
No related branches found
No related tags found
No related merge requests found
Loading
@@ -35,7 +35,9 @@ module Gitlab
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment