No strong reasons to freeze them

Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8620#note_22868713
This commit is contained in:
Lin Jen-Shin 2017-02-07 01:28:58 +08:00
parent 2f80cbb675
commit bec10d5852
1 changed files with 2 additions and 3 deletions

View File

@ -35,15 +35,14 @@ module Gitlab
end
def key_from_fallback_message_id(mail_id)
message_id_regexp =
/\Areply\-(.+)@#{Gitlab.config.gitlab.host}\z/.freeze
message_id_regexp = /\Areply\-(.+)@#{Gitlab.config.gitlab.host}\z/
mail_id[message_id_regexp, 1]
end
def scan_fallback_references(references)
# It's looking for each <...>
references.scan(/(?!<)[^<>]+(?=>)/.freeze)
references.scan(/(?!<)[^<>]+(?=>)/)
end
def config