HARRISBURG, Pa. — A Pennsylvania judge on Wednesday sided with Donald Trump’s campaign and agreed to extend an in-person voting option in a suburban Philadelphia county where long lines on the final day led to complaints voters were being disenfranchised by an unprepared election office.

Judge Jeffrey Trauger said in a one-page order that Bucks County voters who want to apply for an early mail ballot now have until Friday. The narrowly divided county is often seen as a political bellwether.

The Trump campaign’s lawsuit, which was filed Wednesday morning, comes amid a flurry of litigation and complaints over voting in a battleground state that is expected to play a central role in helping select the next president in 2024’s election.

The lawsuit sought a one-day extension, through Wednesday at 5 p.m., for Bucks County voters to apply in person for a mail-in ballot, a method referred to as on-demand mail voting in Pennsylvania. The judge’s order permits applications through the close of business on Friday.

— The Associated Press