mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 09:45:11 +02:00
Add test domains whitelist & fix tests
This commit is contained in:
parent
2d89e8124f
commit
ba4e256662
3 changed files with 8 additions and 2 deletions
|
@ -88,7 +88,7 @@ class Nameserver < ApplicationRecord
|
|||
end
|
||||
|
||||
def normalize_attributes
|
||||
self.hostname = hostname.try(:strip).try(:downcase)
|
||||
self.hostname = hostname.try(:strip).try(:downcase).gsub(/\.$/, '')
|
||||
self.ipv4 = Array(ipv4).reject(&:blank?).map(&:strip)
|
||||
self.ipv6 = Array(ipv6).reject(&:blank?).map(&:strip).map(&:upcase)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue