mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-28 04:00:45 +00:00
Removed potentially dangerous regex warning
This commit is contained in:
parent
e2c8472023
commit
54e4c6a4bb
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class Team < ActiveRecord::Base
|
||||||
validates_length_of :name, :tag, :in => 2..20
|
validates_length_of :name, :tag, :in => 2..20
|
||||||
validates_length_of :irc, :maximum => 20, :allow_blank => true
|
validates_length_of :irc, :maximum => 20, :allow_blank => true
|
||||||
validates_length_of :web, :maximum => 50, :allow_blank => true
|
validates_length_of :web, :maximum => 50, :allow_blank => true
|
||||||
validates_format_of :country, :with => /\A[A-Z]{2}\z$/, :allow_blank => true
|
validates_format_of :country, :with => /\A[A-Z]{2}\z/, :allow_blank => true
|
||||||
validates_length_of [:comment, :recruiting], :in => 0..75, :allow_blank => true
|
validates_length_of [:comment, :recruiting], :in => 0..75, :allow_blank => true
|
||||||
|
|
||||||
scope :with_teamers_num,
|
scope :with_teamers_num,
|
||||||
|
|
Loading…
Reference in a new issue