mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +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
|
||||
|
||||
def hostname=(hostname)
|
||||
self[:hostname] = SimpleIDN.to_unicode(hostname).gsub(/\.+$/, '')
|
||||
self[:hostname_puny] = SimpleIDN.to_ascii(hostname).gsub(/\.+$/, '')
|
||||
self[:hostname] = SimpleIDN.to_unicode(hostname)&.gsub(/\.+$/, '')
|
||||
self[:hostname_puny] = SimpleIDN.to_ascii(hostname)&.gsub(/\.+$/, '')
|
||||
end
|
||||
|
||||
class << self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue