Hegarty was given until Thursday to respond to the Scottish Football Association notice of complaint but has informed compliance officer Vincent Lunny that he has accepted the charge.
The incident is believed to have occurred just after the half-hour mark in Saturday's Links Park draw, which ultimately proved enough for Rangers to clinch the Irn-Bru Third Division title.
The 20-year-old Northern Irishman will now sit out Sunday's trip to Hampden, where Rangers will take on Queen's Park, and the Ibrox meeting with Clyde on April 13.
Hegarty has made 27 first-team appearances for Rangers this season.
- Sports & Recreation
- Scottish Football Association