Skip to content

Commit

Permalink
Change the method name
Browse files Browse the repository at this point in the history
  • Loading branch information
sasata299 committed Nov 19, 2024
1 parent bb46da4 commit 267fac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/valid_email2/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def initialize(address, dns_timeout = 5, dns_nameserver = nil)
@parse_error = true
end

@parse_error ||= address_contain_emoticons?
@parse_error ||= address_contain_multibyte_characters?
end

def valid?
Expand Down Expand Up @@ -137,7 +137,7 @@ def mx_server_is_in?(domain_list)
}
end

def address_contain_emoticons?
def address_contain_multibyte_characters?
return false if @raw_address.nil?

multibyte_chars = @raw_address.scan(/./).select { |char| char.bytesize > 1 }
Expand Down

0 comments on commit 267fac1

Please sign in to comment.