mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Fix rubocop issues that are new to Ruby 2.4
This commit is contained in:
parent
82dbd3e8b8
commit
cf16aa4039
4 changed files with 12 additions and 7 deletions
|
@ -100,7 +100,7 @@ class Nameserver < ActiveRecord::Base
|
|||
|
||||
def check_puny_symbols
|
||||
regexp = /(\A|\.)..--/
|
||||
errors.add(:hostname, :invalid) if hostname =~ regexp
|
||||
errors.add(:hostname, :invalid) if hostname.match?(regexp)
|
||||
end
|
||||
|
||||
def validate_ipv4_format
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue