diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-02-06 20:28:58 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-02-06 20:28:58 +0300 |
commit | bec10d5852a8820de4002af25dd7fbb705561718 (patch) | |
tree | 08752798a90ea553e0a50458dc4f10e299e3bb4a /lib | |
parent | 2f80cbb6759beb412491f9b1b4f0dbcbec6619c0 (diff) |
No strong reasons to freeze them
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8620#note_22868713
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/incoming_email.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/incoming_email.rb b/lib/gitlab/incoming_email.rb index a492f904303..c9122a23568 100644 --- a/lib/gitlab/incoming_email.rb +++ b/lib/gitlab/incoming_email.rb @@ -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 |