Commit 1e3abec7 authored by Yorick Peterse's avatar Yorick Peterse

Move EE code out of Gitlab::PathRegex

This moves all EE code out of Gitlab::PathRegex and into
EE::Gitlab::PathRegex.
parent 3aa92531
# frozen_string_literal: true
module EE
module Gitlab
module PathRegex
extend ActiveSupport::Concern
class_methods do
def saml_callback_regex
@saml_callback_regex ||= %r(\A\/groups\/(?<group>#{full_namespace_route_regex})\/\-\/saml\/callback\z).freeze
end
end
end
end
end
...@@ -233,10 +233,6 @@ module Gitlab ...@@ -233,10 +233,6 @@ module Gitlab
}x }x
end end
def saml_callback_regex
@saml_callback_regex ||= %r(\A\/groups\/(?<group>#{full_namespace_route_regex})\/\-\/saml\/callback\z).freeze
end
private private
def single_line_regexp(regex) def single_line_regexp(regex)
...@@ -246,3 +242,5 @@ module Gitlab ...@@ -246,3 +242,5 @@ module Gitlab
end end
end end
end end
Gitlab::PathRegex.prepend(EE::Gitlab::PathRegex)
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