(CNN) A federal judge late Friday granted an emergency request by Wisconsin Democrats to extend the deadline for people to register to vote electronically to March 30 due to the coronavirus pandemic.

Wisconsin law had imposed a deadline of March 18.

The ruling is a partial win for the Democratic National Committee and Wisconsin Democrats who sought the extension because of the pandemic. They had asked for an extension for both electronic and by-mail voter registration until April 3.

But the judge granted only the extension for electronic registration, and shortened it to March 30.

"The court cannot help but take judicial notice of the excruciating dilemma that will soon be faced by eligible voters who did not register by the March 18, 2020, deadline: either venture into public spaces, contrary to public directives and health guidelines or stay at home and lose the opportunity to vote," wrote District Judge William M. Conley of the US District Court for the Western District of Wisconsin.

Read More