ZZZQUIL while pregnant?

Lastnight I took a liquid form of ZzzQuil to help me fall asleep, & this morning we found out we were pregnant. I know you aren’t suppose to take Melatonin while you are pregnant, but know nothing about ZzzQuil or NyQuil.. Any Comments??? I’m worried