module Gitlab module DependencyLinker class RequirementsTxtLinker < BaseLinker self.file_type = :requirements_txt private def link_dependencies link_regex(/^(?(?![a-z+]+:)[^#.-][^ ><=~!;\[]+)/) do |name| "https://pypi.python.org/pypi/#{name}" end link_regex(%r{^(?https?://[^ ]+)}, &:itself) end end end end