FIX: allow .network as a domain name

This commit is contained in:
Sam Saffron 2015-12-15 18:01:31 +11:00
parent f2bed10087
commit 436da215ae
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
class EmbeddableHost < ActiveRecord::Base
validates_format_of :host, :with => /\A[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?\Z/i
validates_format_of :host, :with => /\A[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,7}(:[0-9]{1,5})?(\/.*)?\Z/i
belongs_to :category
before_validation do