Pepcid AC while breastfeeding

Lindsay
My doctor thinks I have a stomach ulcer and prescribed me pepcid AC. I forgot to ask if it was okay to take while breastfeeding... Does anyone know if it's safe???