Project

General

Profile

« Previous | Next » 

Revision e762203c

Added by Marc Dequènes over 7 years ago

support crazy non-historical TLDs

View differences:

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