Skip to content

Commit

Permalink
Use regexp to remove non-ASCII, control and non-printable characters …
Browse files Browse the repository at this point in the history
…from DOI

Squash commits before pulling from origin

Squash all commits for this branch
  • Loading branch information
mrcstan committed Nov 9, 2021
1 parent c0e9833 commit 76ecf91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/model/entry/identifier/DOI.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public DOI(String doi) {
trimmedDoi = trimmedDoi.replaceAll("[\\p{Cntrl}&&[^\r\n\t]]", "");
// removes non-printable characters from Unicode
trimmedDoi = trimmedDoi.replaceAll("\\p{C}", "");

// HTTP URL decoding
if (doi.matches(HTTP_EXP) || doi.matches(SHORT_DOI_HTTP_EXP)) {
try {
Expand Down

0 comments on commit 76ecf91

Please sign in to comment.