(CNN) New Jersey Gov. Phil Murphy signed a new law on Thursday making it illegal to discriminate based on hairstyles associated with race, his office said. It's one year to the day that an African American high school wrestler cut off his dreadlocks so he could compete.

The change is "intended to remove any confusion or ambiguity over the scope" of the law, Murphy's office said.

"Race-based discrimination will not be tolerated in the State of New Jersey," the governor said in a news release . "No one should be made to feel uncomfortable or be discriminated against because of their natural hair," he said. "I am proud to sign this law in order to help ensure that all New Jersey residents can go to work, school, or participate in athletic events with dignity."

The legislation was introduced after a New Jersey referee told varsity wrestler Andrew Johnson last year he would have to forfeit a match if his dreadlocks were uncovered. Faced with a forfeit, the Buena Regional High School student athlete had a trainer cut his hair. A video of the incident went viral.

Read More