According to the original project's author, he even silently removed loads of edge case handlers until he was called out on it [0]. That seems to have been a really quick and dirty tactic to get his performance numbers up.
My spidey senses are tingling too.
[0] https://github.com/ai/nanocolors/pull/14#issuecomment-927152...