isbn3 1.2.15 → 1.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/groups.js +12 -12
- package/lib/split_isbn_parts.js +2 -1
- package/package.json +1 -1
package/lib/groups.js
CHANGED
|
@@ -890,10 +890,10 @@ module.exports = {
|
|
|
890
890
|
],
|
|
891
891
|
[
|
|
892
892
|
'600',
|
|
893
|
-
'
|
|
893
|
+
'691'
|
|
894
894
|
],
|
|
895
895
|
[
|
|
896
|
-
'
|
|
896
|
+
'69200',
|
|
897
897
|
'69999'
|
|
898
898
|
],
|
|
899
899
|
[
|
|
@@ -1460,7 +1460,7 @@ module.exports = {
|
|
|
1460
1460
|
],
|
|
1461
1461
|
[
|
|
1462
1462
|
'5000',
|
|
1463
|
-
'
|
|
1463
|
+
'6199'
|
|
1464
1464
|
],
|
|
1465
1465
|
[
|
|
1466
1466
|
'80000',
|
|
@@ -4153,10 +4153,10 @@ module.exports = {
|
|
|
4153
4153
|
],
|
|
4154
4154
|
[
|
|
4155
4155
|
'700',
|
|
4156
|
-
'
|
|
4156
|
+
'799'
|
|
4157
4157
|
],
|
|
4158
4158
|
[
|
|
4159
|
-
'
|
|
4159
|
+
'9350',
|
|
4160
4160
|
'9999'
|
|
4161
4161
|
]
|
|
4162
4162
|
]
|
|
@@ -7483,14 +7483,14 @@ module.exports = {
|
|
|
7483
7483
|
ranges: [
|
|
7484
7484
|
[
|
|
7485
7485
|
'0',
|
|
7486
|
-
'
|
|
7486
|
+
'3'
|
|
7487
7487
|
],
|
|
7488
7488
|
[
|
|
7489
7489
|
'50',
|
|
7490
|
-
'
|
|
7490
|
+
'76'
|
|
7491
7491
|
],
|
|
7492
7492
|
[
|
|
7493
|
-
'
|
|
7493
|
+
'865',
|
|
7494
7494
|
'999'
|
|
7495
7495
|
]
|
|
7496
7496
|
]
|
|
@@ -7619,7 +7619,7 @@ module.exports = {
|
|
|
7619
7619
|
ranges: [
|
|
7620
7620
|
[
|
|
7621
7621
|
'0',
|
|
7622
|
-
'
|
|
7622
|
+
'1'
|
|
7623
7623
|
],
|
|
7624
7624
|
[
|
|
7625
7625
|
'50',
|
|
@@ -7640,10 +7640,10 @@ module.exports = {
|
|
|
7640
7640
|
],
|
|
7641
7641
|
[
|
|
7642
7642
|
'50',
|
|
7643
|
-
'
|
|
7643
|
+
'55'
|
|
7644
7644
|
],
|
|
7645
7645
|
[
|
|
7646
|
-
'
|
|
7646
|
+
'980',
|
|
7647
7647
|
'999'
|
|
7648
7648
|
]
|
|
7649
7649
|
]
|
|
@@ -7670,7 +7670,7 @@ module.exports = {
|
|
|
7670
7670
|
ranges: [
|
|
7671
7671
|
[
|
|
7672
7672
|
'0',
|
|
7673
|
-
'
|
|
7673
|
+
'3'
|
|
7674
7674
|
],
|
|
7675
7675
|
[
|
|
7676
7676
|
'50',
|
package/lib/split_isbn_parts.js
CHANGED
|
@@ -21,11 +21,12 @@ const findValidCodes = isbn13 => {
|
|
|
21
21
|
// (so there won't be cases of the kind '2' > '199' === true)
|
|
22
22
|
if (min <= publisher && max >= publisher) {
|
|
23
23
|
const restAfterPublisher = restAfterGroup.substr(publisher.length)
|
|
24
|
+
const check = restAfterPublisher.slice(-1)
|
|
24
25
|
return {
|
|
25
26
|
group,
|
|
26
27
|
publisher,
|
|
27
28
|
article: restAfterPublisher.slice(0, -1),
|
|
28
|
-
check:
|
|
29
|
+
check: check === 'x' ? 'X' : check
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
}
|