FIX: allow .network as a domain name
This commit is contained in:
parent
f2bed10087
commit
436da215ae
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue