The logic for finding long matches before short ones was wrong (why did I never notice this??!?), fixed.
1 file changed