Open pe opened 10 years ago
Well, that was a rather bizarre issue, but it should be fixed with this patch. Turns out that saving to a file and then re-reading it would make it lose the second trailing newline, leading to the nameserver block regex not picking it up anymore (as it expects two newlines to signify the end of the block). I've changed the regex to also see end-of-string as a valid block terminator, so that should be fixed now.
I'll be awaiting some feedback on other issues / pull requests until tomorrow, and if nothing else happens to be merged in, I'll be releasing a new version. I'll also have to look into why the tests missed this - they should've caught the absence of nameservers, and I'm not sure why they didn't.
pwhois swisscom.ch
does not parse the name servers:But saving it to file and parsing it from there works (
pwhois --raw swisscom.ch > swisscom.ch && pwhois -f swisscom.ch .
):