36weeks & yellow thick mucus discharge

I’m 36w and this is my third pregnancy. I’ve been experiencing mucus discharge that is thick and yellow-ish. No other symptoms other than I did have regular contractions last night.

Is this bits of the mucus plug or an infection?