Regularity of capillary surfaces over domains with corners: borderline case