Skip to content

Commit

Permalink
Update test to match latest mailto: substitution (#2242)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam authored Jan 24, 2025
1 parent a036559 commit e41929b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected BrowserType bestBrowser()
@BeforeClass
public static void setupProject()
{
ModeratorReviewTest init = (ModeratorReviewTest) getCurrentTest();
ModeratorReviewTest init = getCurrentTest();
init.doSetup();
}

Expand Down Expand Up @@ -185,7 +185,7 @@ private String replaceEmailAddressesWithMailToLinks(String s)
Matcher matcher = Pattern.compile("[0-9A-Za-z+_.-]+@[0-9A-Za-z.-]+").matcher(s);
return matcher.replaceAll(match -> {
String email = match.group();
return "<a href=\"mailto:" + email + "\">" + email + "</a>";
return "<a href=\"mailto:" + email + "\" rel=\"nofollow\">" + email + "</a>";
});
}

Expand Down

0 comments on commit e41929b

Please sign in to comment.