A Massachusetts charter school that came under fire for what some students and parents considered a discriminatory policy banning hair braid extensions has quietly removed the rule.

Boston 25 News first reported on the issue when parents raised concerns about it earlier this year.

The handbook for 2017-2018 at Mystic Valley Regional Charter School no longer bans hair extensions, hair that's more than 2 inches in thickness or height, or hair coloring.

The attorney general's office in May told the school its dress code appears to violate laws against racial discrimination.

The issue came to light when the parents of twin 15-year-old black girls said their daughters were punished for wearing extensions, while white students hadn't been punished for violating of hairstyle regulations.

School administrators have said hair extensions and other banned styles were distracting to students.

The school's director and spokesperson didn't immediately return a call seeking comment Saturday.