Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
3d141d15
Commit
3d141d15
authored
Aug 20, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec by removing global state.
parent
afb765ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
lib/gitlab/reply_by_email.rb
lib/gitlab/reply_by_email.rb
+6
-8
No files found.
lib/gitlab/reply_by_email.rb
View file @
3d141d15
...
@@ -36,14 +36,12 @@ module Gitlab
...
@@ -36,14 +36,12 @@ module Gitlab
end
end
def
address_regex
def
address_regex
@address_regex
||=
begin
wildcard_address
=
config
.
address
wildcard_address
=
config
.
address
return
nil
unless
wildcard_address
return
nil
unless
wildcard_address
regex
=
Regexp
.
escape
(
wildcard_address
)
regex
=
Regexp
.
escape
(
wildcard_address
)
regex
=
regex
.
gsub
(
Regexp
.
escape
(
'%{reply_key}'
),
"(.+)"
)
regex
=
regex
.
gsub
(
Regexp
.
escape
(
'%{reply_key}'
),
"(.+)"
)
Regexp
.
new
(
regex
).
freeze
Regexp
.
new
(
regex
).
freeze
end
end
end
end
end
end
end
...
...
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