Revision e762203c
Added by Marc Dequènes over 7 years ago
lib/cyborghood/objects.rb | ||
---|---|---|
end
|
||
|
||
def self.is_valid?(name)
|
||
name =~ /^[a-z0-9.-]+\.[a-z]{2,4}$/
|
||
name =~ /^[a-z0-9][a-z0-9-]*(\.[a-z0-9][a-z0-9-]*)+$/
|
||
end
|
||
|
||
def is_valid?
|
Also available in: Unified diff
support crazy non-historical TLDs