mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Merge pull request #9586 from DSpace/backport-9582-to-dspace-7_x
[Port dspace-7_x] Add additional DOI prefixes
This commit is contained in:
@@ -19,7 +19,16 @@ import java.util.regex.Pattern;
|
||||
*/
|
||||
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]+" +
|
||||
|
Reference in New Issue
Block a user