validate extension <-> line when linking to a different line