BREWER — Police say a 51-year-old Maine woman had to undergo emergency surgery after losing her thumb in a freak accident while pumping gas into her vehicle.

Brewer Deputy Chief Jason Moffitt said the Bangor woman was filling up at a Brewer convenience store Monday morning when she jumped into the driver’s side when the car began rolling forward.

Moffitt told WZON-AM that the driver’s side door then hit a bumper on the gas pump island, slamming it shut on her thumb and cutting it off.

He said the woman and her thumb were rushed to the hospital, where she underwent surgery to re-attach it.

Officials said about 10 gallons of gas were spilled, but that the Brewer fire crews quickly cleaned it up.

Police haven’t released the woman’s name.