app/models/account_domain.rb in iugusdk-1.0.0.alpha.31 vs app/models/account_domain.rb in iugusdk-1.0.0.alpha.32
- old
+ new
@@ -67,10 +67,10 @@
private
def validate_pattern
if url
- errors.add(:url, "Invalid Pattern") unless url.match /^([a-z0-9]*\.)*[a-z0-9]*$/
+ errors.add(:url, "Invalid URL") unless url.match /^\S+\.([a-z0-9]*\.)*[a-z0-9]*$/
end
end
def validate_blacklist
if url