likexian / whois-parser

Whois parser for domain whois information parsing in Go(Golang).
Apache License 2.0
284 stars 86 forks source link

🚑 index out of range on preparetk #44

Closed EduardoRMello closed 3 years ago

EduardoRMello commented 3 years ago

The Problem: When I try to parse the result from whois 'zcore.tk' i found this error: "runtime error: index out of range [5] with length 5"

Steps to reproduce:

package main

import (
    likesianwhois "github.com/likexian/whois"
    whoisparser "github.com/likexian/whois-parser"
)

func main(){
    data, _ := likesianwhois.Whois("zcore.tk")
    parsed, _ := whoisparser.Parse(data)
}

and the error will occurs... I can see that this domain returns five parts of address wich the last one is the country...

So, i send this PR to solve this problem adding a new field Country into array of fields.

dogasantos commented 3 years ago

+1

likexian commented 3 years ago

Hello @EduardoRMello Thanks for your PR, I will merge it.


If you think this repository is helpful, please share it with friends, thanks.