diff options
Diffstat (limited to 'lib/gitlab/ci/project_config/remote.rb')
-rw-r--r-- | lib/gitlab/ci/project_config/remote.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/ci/project_config/remote.rb b/lib/gitlab/ci/project_config/remote.rb index 19cbf8e9c1e..23ed510e378 100644 --- a/lib/gitlab/ci/project_config/remote.rb +++ b/lib/gitlab/ci/project_config/remote.rb @@ -6,7 +6,7 @@ module Gitlab class Remote < Source def content strong_memoize(:content) do - next unless ci_config_path =~ URI::DEFAULT_PARSER.make_regexp(%w[http https]) + next unless URI::DEFAULT_PARSER.make_regexp(%w[http https]).match?(ci_config_path) YAML.dump('include' => [{ 'remote' => ci_config_path }]) end |