Update rubocop
to version 1.69.1 (#32967)
This commit is contained in:
parent
6615f17b48
commit
342055cb15
7 changed files with 25 additions and 14 deletions
|
@ -261,7 +261,7 @@ class Request
|
|||
outer_e = nil
|
||||
port = args.first
|
||||
|
||||
addresses = []
|
||||
addresses = [] # rubocop:disable Lint/UselessAssignment # TODO: https://github.com/rubocop/rubocop/issues/13395
|
||||
begin
|
||||
addresses = [IPAddr.new(host)]
|
||||
rescue IPAddr::InvalidAddressError
|
||||
|
|
|
@ -4,7 +4,7 @@ class DomainValidator < ActiveModel::EachValidator
|
|||
MAX_DOMAIN_LENGTH = 256
|
||||
MIN_LABEL_LENGTH = 1
|
||||
MAX_LABEL_LENGTH = 63
|
||||
ALLOWED_CHARACTERS_RE = /^[a-z0-9\-]+$/i
|
||||
ALLOWED_CHARACTERS_RE = /^[a-z0-9-]+$/i
|
||||
|
||||
def validate_each(record, attribute, value)
|
||||
return if value.blank?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue