That was me pointing out what was plainly implemented in the code snippet I linked. It is obviously nowhere near the truth.
There are a plenty of reasons why you might want to treat the most common two part TLDs as special, while not doing that with the less common ones.