Skip to content

Commit

Permalink
Update DOI reg-ex to Crossref's recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinleinweber committed Nov 19, 2019
1 parent b2a04e4 commit fbee50d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/contentmine/cproject/metadata/CMDOI.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class CMDOI extends AbstractCM {
https://doi.org/10.1525/irqr.2016.9.1.29
*/

static Pattern PATTERN = Pattern.compile("https?://(dx\\.)?doi\\.org/(10\\.\\d{3,8})/(.*)");
static Pattern PATTERN = Pattern.compile("https?://(dx\\.)?doi\\.org/10.\d{4,9}/[-._;()/:A-Za-z0-9]+");
public static CMDOI DUMMY = new CMDOI(null, null);

public CMDOI(String prefix, String suffix) {
Expand Down

0 comments on commit fbee50d

Please sign in to comment.