Skip to content

Commit

Permalink
fix bug JabRef#9087
Browse files Browse the repository at this point in the history
  • Loading branch information
Rory O'Day committed Oct 17, 2022
1 parent e1c3408 commit 93273a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/jabref/logic/layout/LayoutEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ private String handleOptionField(BibEntry bibtex, BibDatabase database) {
if (postFormatter != null) {
fieldEntry = postFormatter.format(fieldEntry);
}

//Only allow ascii characters
fieldEntry = fieldEntry.replaceAll("[^\\p{ASCII}]", "");
//Find only cases of single quotes and replace with double quotes
fieldEntry = fieldEntry.replaceAll("(?<!\")\"(?!\")","\"\"");
return fieldEntry;
}

Expand Down

0 comments on commit 93273a3

Please sign in to comment.