Skip to content

Commit

Permalink
Merge pull request DSpace#9582 from hutattedonmyarm/9561-add-addition…
Browse files Browse the repository at this point in the history
…al-doi-prefixes

Add additional DOI prefixes
  • Loading branch information
alanorth authored May 15, 2024
2 parents 1517e8c + ba4edee commit a828e5e
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@
*/
public class DoiCheck {

private static final List<String> DOI_PREFIXES = Arrays.asList("http://dx.doi.org/", "https://dx.doi.org/");
private static final List<String> DOI_PREFIXES = Arrays.asList(
"http://dx.doi.org/",
"https://dx.doi.org/",
"http://www-dx.doi.org/",
"https://www-dx.doi.org/",
"http://doi.org/",
"https://doi.org/",
"www.dx.doi.org/",
"dx.doi.org/",
"doi:");

private static final Pattern PATTERN = Pattern.compile("10.\\d{4,9}/[-._;()/:A-Z0-9]+" +
"|10.1002/[^\\s]+" +
Expand Down

0 comments on commit a828e5e

Please sign in to comment.