ALBUQUERQUE, N.M. (KRQE) – When Mary Sanchez went to cast her ballot early at the Four Hills Shopping Center, she wasn’t aware that she was breaking the law.

After a lengthy wait in line, Sanchez was surprised when a poll worker confronted her.

“The lady came up and asked if I would leave or turn my shirt inside out,” Sanchez said. “I asked her, ‘Are you serious?’ and she said, ‘Yes.'”

Sanchez ultimately left without voting that day.

The problem was her black Donald Trump shirt.

What Sanchez did fell under a New Mexico law against “electioneering” within 100 feet of a polling place. A key part of that statute reads:

Electioneering includes the display or distribution of signs or campaign literature, campaign buttons, t-shirts, hats, pins or other such items and includes the verbal or electronic solicitation of votes for a candidate or question.

According to Ohio Poll Worker Training:

Campaigning is attempting to persuade people to vote for or against a certain candidate or issue. Activities may include, but are not limited to, the display or distribution of political badges, t-shirts, buttons, literature, newspapers or magazines with political covers, hats, stickers, pins, bags, and so on. Campaigning is prohibited at polling locations within 100 feet of the entrance and within 10 feet of voters waiting in line, if the line extends past the 100 feet.

Breaking that law is a petty misdemeanor in New Mexico, although Bernalillo County clerk’s spokesperson Joey Keefe says he hasn’t heard of someone getting arrested for wearing a shirt to the polls.

“If it’s something like a hat or button we just ask them to put it in their car,” Keefe said. “If it’s something like a t-shirt we ask them to go to a private place and turn it inside out so they don’t have to leave completely or if they have a jacket, to zip up the jacket.”

New Mexico is not alone in having that law on the books. KRQE News 13 found at least 20 other states where it’s either directly or implicitly against the law to wear a campaign shirt to a polling place.

Sanchez thinks the law could be made clearer to voters, but already learned her lesson.

“I did end up voting this morning,” Sanchez said. “With a different shirt!”