Commit bec10d58 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 2f80cbb6
...@@ -35,15 +35,14 @@ module Gitlab ...@@ -35,15 +35,14 @@ module Gitlab
end end
def key_from_fallback_message_id(mail_id) def key_from_fallback_message_id(mail_id)
message_id_regexp = message_id_regexp = /\Areply\-(.+)@#{Gitlab.config.gitlab.host}\z/
/\Areply\-(.+)@#{Gitlab.config.gitlab.host}\z/.freeze
mail_id[message_id_regexp, 1] mail_id[message_id_regexp, 1]
end end
def scan_fallback_references(references) def scan_fallback_references(references)
# It's looking for each <...> # It's looking for each <...>
references.scan(/(?!<)[^<>]+(?=>)/.freeze) references.scan(/(?!<)[^<>]+(?=>)/)
end end
def config def config
......
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