Removed potentially dangerous regex warning

This commit is contained in:
Luke Barratt 2015-08-15 20:26:57 +01:00
parent e2c8472023
commit 54e4c6a4bb

View file

@ -30,7 +30,7 @@ class Team < ActiveRecord::Base
validates_length_of :name, :tag, :in => 2..20
validates_length_of :irc, :maximum => 20, :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
scope :with_teamers_num,