mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Fix empty nameserver domain names for history
This commit is contained in:
parent
1881992927
commit
e78d01724e
1 changed files with 2 additions and 2 deletions
|
@ -58,8 +58,8 @@ class Nameserver < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def hostname=(hostname)
|
def hostname=(hostname)
|
||||||
self[:hostname] = SimpleIDN.to_unicode(hostname).gsub(/\.+$/, '')
|
self[:hostname] = SimpleIDN.to_unicode(hostname)&.gsub(/\.+$/, '')
|
||||||
self[:hostname_puny] = SimpleIDN.to_ascii(hostname).gsub(/\.+$/, '')
|
self[:hostname_puny] = SimpleIDN.to_ascii(hostname)&.gsub(/\.+$/, '')
|
||||||
end
|
end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue