Skip to content

Commit

Permalink
Update src/main/java/org/jabref/model/entry/identifier/DOI.java
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Kopp <[email protected]>
  • Loading branch information
Siedlerchr and koppor authored Sep 26, 2020
1 parent 0aee547 commit 074856d
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 @@ -108,7 +108,7 @@ public DOI(String doi) {
Matcher matcher = EXACT_DOI_PATT.matcher(trimmedDoi);
if (matcher.find()) {
// match only group \1
this.doi = matcher.group(1).replaceAll("[^\\w,/,:,-,.,-]|[_]", "");
this.doi = matcher.group(1).replaceAll("[^\\w/:-.-_]", "");
} else {
// Short DOI
Matcher shortDoiMatcher = EXACT_SHORT_DOI_PATT.matcher(trimmedDoi);
Expand Down

0 comments on commit 074856d

Please sign in to comment.