Generalize short line check