File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 33/**
44 * Parts of a DOI:
55 * Directory Identifier: 10
6- * Registrant code: . + [0-9]{4 ,}
6+ * Registrant code: . + [0-9]{2 ,}
77 * Registrant subdivision (optional): . + [0-9]+
88 * Suffix: / + any character, case insensitive for ASCII chars (but capitalised
99 * in the registry), with some characters that _should_ be escaped.
1414
1515// TODO Capture final segment for fragments
1616// (\\.[a-zA-Z]{1}[0-9]{3})?
17- var doiRegex = '(10[.][0-9]{4 ,}(?:[.][0-9]+)*/(?:(?![%"#? ])\\S)+)'
17+ var doiRegex = '(10[.][0-9]{2 ,}(?:[.][0-9]+)*/(?:(?![%"#? ])\\S)+)'
1818var doiTextPrefix = 'doi\\:'
1919
2020var doi = module . exports = function ( opts ) {
Original file line number Diff line number Diff line change 77
88Parts of a DOI:
99 * Directory Identifier: 10
10- * Registrant code: . + [ 0-9] {4 ,}
10+ * Registrant code: . + [ 0-9] {2 ,}
1111 * Registrant subdivision (optional): . + [ 0-9] +
1212 * Suffix: / + any character, case insensitive for ASCII chars (but capitalised
1313 in the registry), with some characters that _should_ be escaped
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ var doi = [
88 '10.0001/journal.pone.000001' ,
99 '10.0001/journal/pone.0011111' ,
1010 '10.0001.112/journal.pone.0011021' ,
11- '10.0001/issn.10001'
11+ '10.0001/issn.10001' ,
12+ '10.10.123/456'
1213]
1314
1415var doiOlderFormat = [
You can’t perform that action at this time.
0 commit comments