In the lines above, a possibly non-existent third node is checked (having index 2), which is a one-off error. Then, the alternative condition, where the first node is 2, the first node is checked again for being greater than 175, which is obviously contradictory with the first condition. This is two bugs in one expression!
This library incorrectly validates
OBJECT IDENTIFIER
s.https://github.com/JonathanWilbur/asn1-ts/blob/9f524f5894ca4bf97db96bc38776091873109f7d/source/types/objectidentifier.ts#L12-L16
In the lines above, a possibly non-existent third node is checked (having index 2), which is a one-off error. Then, the alternative condition, where the first node is 2, the first node is checked again for being greater than 175, which is obviously contradictory with the first condition. This is two bugs in one expression!