Project

General

Profile

Defect #11192 ยป repository.rb.diff

Daniel Stonier, 2012-06-19 04:25

View differences:

repository.rb.new 2012-06-19 11:15:15.605742624 +0900
38 38
  validates_uniqueness_of :identifier, :scope => :project_id, :allow_blank => true
39 39
  validates_exclusion_of :identifier, :in => %w(show entry raw changes annotate diff show stats graph)
40 40
  # donwcase letters, digits, dashes but not digits only
41
  validates_format_of :identifier, :with => /^(?!\d+$)[a-z0-9\-]*$/, :allow_blank => true
41
  validates_format_of :identifier, :with => /^(?!\d+$)[a-z0-9\-_]*$/, :allow_blank => true
42 42
  # Checks if the SCM is enabled when creating a repository
43 43
  validate :repo_create_validation, :on => :create
44 44

  
    (1-1/1)