Module: Gitlab::Regex::Packages::Protection::Rules

Defined in:
lib/gitlab/regex/packages/protection/rules.rb

Class Method Summary collapse

Class Method Details

.protection_rules_npm_package_name_pattern_regexObject



8
9
10
# File 'lib/gitlab/regex/packages/protection/rules.rb', line 8

def self.protection_rules_npm_package_name_pattern_regex
  @protection_rules_npm_package_name_pattern_regex ||= Gitlab::Regex.npm_package_name_regex('*')
end

.protection_rules_pypi_package_name_pattern_regexObject



12
13
14
# File 'lib/gitlab/regex/packages/protection/rules.rb', line 12

def self.protection_rules_pypi_package_name_pattern_regex
  @protection_rules_pypi_package_name_pattern_regex ||= Gitlab::Regex.package_name_regex('*')
end