diff --git a/src/main/java/org/jabref/logic/importer/fileformat/RisImporter.java b/src/main/java/org/jabref/logic/importer/fileformat/RisImporter.java index d22c5e8d01d..9ee8f9962c4 100644 --- a/src/main/java/org/jabref/logic/importer/fileformat/RisImporter.java +++ b/src/main/java/org/jabref/logic/importer/fileformat/RisImporter.java @@ -316,6 +316,12 @@ private void addDoi(Map hm, String val) { if (doi.startsWith("doi:")) { doi = doi.replaceAll("(?i)doi:", "").trim(); hm.put(StandardField.DOI, doi); + } else { + String doiRegEx = "10\\.[0-9]{4,}(?:\\.[0-9]+)*/(?:(?![\"&'])\\S)+"; + Pattern pattern = Pattern.compile(doiRegEx); + if (pattern.matcher(doi).matches()) { + hm.put(StandardField.DOI, doi); + } } } }