Skip to content

Commit

Permalink
header stripped from email
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominika Tkaczyk committed Oct 17, 2016
1 parent d137bc8 commit 237cc75
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ protected boolean enhanceMetadata(BxDocument document, DocumentMetadata metadata
continue;
}

emailText = emailText
.replaceFirst("^[Ee]mails?: *", "")
.replaceFirst("^[Ee]- *[Mm]ails?: *", "");

metadata.addAuthor(authorText, Lists.newArrayList(String.valueOf(ind)), emailText);
metadata.setAffiliationByIndex(String.valueOf(ind), affText);
added = true;
Expand Down

0 comments on commit 237cc75

Please sign in to comment.