@iebh/reflib 2.6.3 → 2.6.4
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/modules/bibtex.js +3 -8
- package/package.json +1 -1
package/modules/bibtex.js
CHANGED
|
@@ -66,9 +66,7 @@ export function readStream(stream, options) {
|
|
|
66
66
|
|
|
67
67
|
while (true) {
|
|
68
68
|
let match; // Regex storage for match groups
|
|
69
|
-
console.log("Here 0")
|
|
70
69
|
if ((mode == MODES.REF) && (match = /^\s*@(?<type>\w+?)\s*\{(?<id>.*?),/s.exec(buffer))) {
|
|
71
|
-
console.log("Here 1")
|
|
72
70
|
if (settings.recNumberNumeric && isFinite(match.groups.id)) { // Accept numeric recNumber
|
|
73
71
|
ref.recNumber = +match.groups.id;
|
|
74
72
|
} else if (settings.recNumberRNPrefix && /^RN\d+$/.test(match.groups.id)) {
|
|
@@ -76,13 +74,10 @@ export function readStream(stream, options) {
|
|
|
76
74
|
} else if (!settings.recNumberNumeric && match.groups.id) { // Non numeric / finite ID - but we're allowed to accept it anyway
|
|
77
75
|
ref.recNumber = +match.groups.id;
|
|
78
76
|
} else if (settings.recNumberKey) { // Non numeric, custom looking key, stash in 'key' instead
|
|
79
|
-
ref.key = match.groups.id;
|
|
80
|
-
console.log("Here 2")
|
|
81
|
-
} // Implied else - No ID, ignore
|
|
82
|
-
else {
|
|
83
|
-
console.log("Here 3")
|
|
84
77
|
ref.key = generateCitationKey(ref);
|
|
85
|
-
|
|
78
|
+
// ref.key = match.groups.id;
|
|
79
|
+
console.log("Here is the id",ref.key)
|
|
80
|
+
} // Implied else - No ID, ignore
|
|
86
81
|
|
|
87
82
|
ref.type = match.groups.type;
|
|
88
83
|
mode = MODES.FIELDS;
|