Reference: Fataawa Ramadhaan – Volume 1, Page 373, Fatwa No.332
Fataawa al-Lajnah ad-Daa.imah lil-Buhooth al-`Ilmiyyah wal-Iftaa. – Fatwa No.6549
Question: There is a woman who was nine months pregnant when Ramadhaan arrived, and at the beginning of the month discharge, not blood, would flow from her and she continued to fast whilst the discharge flowed. This occurred ten years ago, and my question is: Does this woman have to make up the fasts since she fasted these days whilst the discharge flowed from her?
Response: If the situation is as has been mentioned, then her fasts are valid and she is not required to make them up.
And with Allaah lies all the success, and may Allaah send prayers and salutations upon our Prophet Muhammad ﷺ and his family and his companions.