Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
d653b58ca290
Commit
35224d5e
authored
Aug 20, 2015
by
Douwe Maan
Browse files
Memoize address_regex locally.
parent
328303c6f4c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/gitlab/reply_by_email.rb
View file @
d653b58c
...
...
@@ -21,9 +21,10 @@ def reply_address(reply_key)
end
def
reply_key_from_address
(
address
)
return
unless
address_regex
regex
=
address_regex
return
unless
regex
match
=
address
.
match
(
address_
regex
)
match
=
address
.
match
(
regex
)
return
unless
match
match
[
1
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment