Any discharge like yellow, green, with or without foul-smelling, and frothy texture may be a sign of vaginal infection or a sexually transmitted disease.
If you observe an increase in discharge or discharge along with some mucus-like substance or blood during or before your 37 weeks of pregnancy, then contact your doctor. This could be a preterm labor sign.