File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3
3
/**
4
4
* Parts of a DOI:
5
5
* Directory Identifier: 10
6
- * Registrant code: . + [0-9]{4 ,}
6
+ * Registrant code: . + [0-9]{2 ,}
7
7
* Registrant subdivision (optional): . + [0-9]+
8
8
* Suffix: / + any character, case insensitive for ASCII chars (but capitalised
9
9
* in the registry), with some characters that _should_ be escaped.
14
14
15
15
// TODO Capture final segment for fragments
16
16
// (\\.[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)+)'
18
18
var doiTextPrefix = 'doi\\:'
19
19
20
20
var doi = module . exports = function ( opts ) {
Original file line number Diff line number Diff line change 7
7
8
8
Parts of a DOI:
9
9
* Directory Identifier: 10
10
- * Registrant code: . + [ 0-9] {4 ,}
10
+ * Registrant code: . + [ 0-9] {2 ,}
11
11
* Registrant subdivision (optional): . + [ 0-9] +
12
12
* Suffix: / + any character, case insensitive for ASCII chars (but capitalised
13
13
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 = [
8
8
'10.0001/journal.pone.000001' ,
9
9
'10.0001/journal/pone.0011111' ,
10
10
'10.0001.112/journal.pone.0011021' ,
11
- '10.0001/issn.10001'
11
+ '10.0001/issn.10001' ,
12
+ '10.10.123/456'
12
13
]
13
14
14
15
var doiOlderFormat = [
You can’t perform that action at this time.
0 commit comments