Incorrect result for EXAMPLE.COM.UK.COM
Status: Alpha
Brought to you by:
stack-sf
subdomain traversal will stop on first 'stopOK' match and not check children for further matches or exceptions.
For example 'EXAMPLE.COM.UK.COM' should be 'UK.COM' but comes back 'COM'. There are several other examples in the attached. Around 20 failures in the testData array set.
Possibly in the getEffectiveTLDLength method, if the last check for node.isStopOK() did the following:
It doesnt fix everything, but seems to fix most problems.