@graphty/graph-io 0.3.28 → 0.3.30
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/dist/chunks/{choose-DrXtu_96.js → choose-BfOLq6OX.js} +2 -2
- package/dist/chunks/{choose-DrXtu_96.js.map → choose-BfOLq6OX.js.map} +1 -1
- package/dist/chunks/{constants-ikG85dT8.js → constants-M8Qsjz1C.js} +2 -2
- package/dist/chunks/{constants-ikG85dT8.js.map → constants-M8Qsjz1C.js.map} +1 -1
- package/dist/chunks/{escape-D1HPTUrP.js → escape-UMMpQZqs.js} +2 -2
- package/dist/chunks/{escape-D1HPTUrP.js.map → escape-UMMpQZqs.js.map} +1 -1
- package/dist/chunks/{export-CHd4tQE2.js → export-Dq4U8Ubq.js} +165 -148
- package/dist/chunks/{export-CHd4tQE2.js.map → export-Dq4U8Ubq.js.map} +1 -1
- package/dist/chunks/{exporter-DhtW6FxK.js → exporter-BUosqV0K.js} +34 -34
- package/dist/chunks/exporter-BUosqV0K.js.map +1 -0
- package/dist/chunks/{exporter-D23CKNqF.js → exporter-Bd_VZ9ph.js} +9 -10
- package/dist/chunks/exporter-Bd_VZ9ph.js.map +1 -0
- package/dist/chunks/{exporter-DfWTgrti.js → exporter-COgVm-ff.js} +8 -7
- package/dist/chunks/{exporter-DfWTgrti.js.map → exporter-COgVm-ff.js.map} +1 -1
- package/dist/chunks/{exporter-Cl021ZIE.js → exporter-DEk_XLLs.js} +4 -4
- package/dist/chunks/{exporter-Cl021ZIE.js.map → exporter-DEk_XLLs.js.map} +1 -1
- package/dist/chunks/{importer-BZB7iP9r.js → importer-AQ3KpNHz.js} +11 -20
- package/dist/chunks/importer-AQ3KpNHz.js.map +1 -0
- package/dist/chunks/{importer-BVRE--Un.js → importer-BsZa2Phx.js} +5 -5
- package/dist/chunks/importer-BsZa2Phx.js.map +1 -0
- package/dist/chunks/{importer-DpEW5zeG.js → importer-CV8au8gH.js} +4 -4
- package/dist/chunks/{importer-DpEW5zeG.js.map → importer-CV8au8gH.js.map} +1 -1
- package/dist/chunks/{importer-BSALvkui.js → importer-Cj4-lXlv.js} +10 -9
- package/dist/chunks/importer-Cj4-lXlv.js.map +1 -0
- package/dist/chunks/{importer-B2W_58pz.js → importer-DQsgmhxc.js} +5 -5
- package/dist/chunks/{importer-B2W_58pz.js.map → importer-DQsgmhxc.js.map} +1 -1
- package/dist/chunks/{importer-CIAzt-wo.js → importer-Dkn79TjB.js} +6 -6
- package/dist/chunks/importer-Dkn79TjB.js.map +1 -0
- package/dist/chunks/{importer-z_FL4VMb.js → importer-DwSZvMDq.js} +10 -19
- package/dist/chunks/importer-DwSZvMDq.js.map +1 -0
- package/dist/chunks/{json-elements-BAmNBZok.js → json-elements-CreeKoaH.js} +12 -16
- package/dist/chunks/{json-elements-BAmNBZok.js.map → json-elements-CreeKoaH.js.map} +1 -1
- package/dist/chunks/{ontology-export-Bab4eUA8.js → ontology-export-C5Xd3W-7.js} +2 -2
- package/dist/chunks/{ontology-export-Bab4eUA8.js.map → ontology-export-C5Xd3W-7.js.map} +1 -1
- package/dist/chunks/{records-CdlvL4RO.js → records-BwaH_2ll.js} +2 -2
- package/dist/chunks/{records-CdlvL4RO.js.map → records-BwaH_2ll.js.map} +1 -1
- package/dist/chunks/{text-DzXjAiTl.js → text-4HHe6YH3.js} +2 -2
- package/dist/chunks/{text-DzXjAiTl.js.map → text-4HHe6YH3.js.map} +1 -1
- package/dist/csv.js +22 -15
- package/dist/csv.js.map +1 -1
- package/dist/cx.js +1 -1
- package/dist/cx2.js +2 -2
- package/dist/cys.js +1 -1
- package/dist/dot.js +1 -1
- package/dist/gexf.js +9 -8
- package/dist/gexf.js.map +1 -1
- package/dist/gml.js +3 -3
- package/dist/graph-io.js +69 -69
- package/dist/graphml.js +2 -2
- package/dist/json.js +1 -1
- package/dist/neo4j.js +3 -3
- package/dist/obo.js +1 -1
- package/dist/pajek.js +1 -1
- package/dist/src/common/export.d.ts +6 -0
- package/dist/src/common/export.d.ts.map +1 -1
- package/dist/src/common/export.js +62 -28
- package/dist/src/common/export.js.map +1 -1
- package/dist/src/common/format.d.ts +0 -8
- package/dist/src/common/format.d.ts.map +1 -1
- package/dist/src/common/format.js +0 -10
- package/dist/src/common/format.js.map +1 -1
- package/dist/src/common/json-elements.d.ts +1 -9
- package/dist/src/common/json-elements.d.ts.map +1 -1
- package/dist/src/common/json-elements.js +2 -12
- package/dist/src/common/json-elements.js.map +1 -1
- package/dist/src/formats/csv/exporter.d.ts.map +1 -1
- package/dist/src/formats/csv/exporter.js +18 -7
- package/dist/src/formats/csv/exporter.js.map +1 -1
- package/dist/src/formats/cx/importer.d.ts.map +1 -1
- package/dist/src/formats/cx/importer.js +3 -3
- package/dist/src/formats/cx/importer.js.map +1 -1
- package/dist/src/formats/cx2/importer.d.ts.map +1 -1
- package/dist/src/formats/cx2/importer.js +3 -3
- package/dist/src/formats/cx2/importer.js.map +1 -1
- package/dist/src/formats/cys/exporter.d.ts.map +1 -1
- package/dist/src/formats/cys/exporter.js +4 -3
- package/dist/src/formats/cys/exporter.js.map +1 -1
- package/dist/src/formats/dot/exporter.js +1 -1
- package/dist/src/formats/dot/importer.d.ts +2 -2
- package/dist/src/formats/dot/importer.d.ts.map +1 -1
- package/dist/src/formats/dot/importer.js +7 -11
- package/dist/src/formats/dot/importer.js.map +1 -1
- package/dist/src/formats/gexf/exporter.d.ts +2 -2
- package/dist/src/formats/gexf/exporter.d.ts.map +1 -1
- package/dist/src/formats/gexf/exporter.js +7 -5
- package/dist/src/formats/gexf/exporter.js.map +1 -1
- package/dist/src/formats/gexf/schema.js +1 -1
- package/dist/src/formats/json/exporter.js +1 -1
- package/dist/src/formats/json/importer.d.ts.map +1 -1
- package/dist/src/formats/json/importer.js +4 -6
- package/dist/src/formats/json/importer.js.map +1 -1
- package/dist/src/formats/obo/syntax.d.ts +4 -0
- package/dist/src/formats/obo/syntax.d.ts.map +1 -1
- package/dist/src/formats/obo/syntax.js +35 -31
- package/dist/src/formats/obo/syntax.js.map +1 -1
- package/dist/src/formats/pajek/exporter.d.ts.map +1 -1
- package/dist/src/formats/pajek/exporter.js +5 -4
- package/dist/src/formats/pajek/exporter.js.map +1 -1
- package/dist/src/formats/pajek/importer.d.ts.map +1 -1
- package/dist/src/formats/pajek/importer.js +3 -7
- package/dist/src/formats/pajek/importer.js.map +1 -1
- package/dist/src/formats/pajek/syntax.d.ts +1 -1
- package/dist/src/formats/pajek/syntax.js +1 -1
- package/dist/src/formats/xgmml/constants.d.ts +1 -1
- package/dist/src/formats/xgmml/constants.js +1 -1
- package/dist/src/formats/xgmml/emit.js +1 -1
- package/dist/src/formats/xgmml/exporter.d.ts.map +1 -1
- package/dist/src/formats/xgmml/exporter.js +4 -3
- package/dist/src/formats/xgmml/exporter.js.map +1 -1
- package/dist/src/types.d.ts +6 -0
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js.map +1 -1
- package/dist/xgmml.js +2 -2
- package/package.json +1 -1
- package/src/common/export.ts +105 -62
- package/src/common/format.ts +0 -11
- package/src/common/json-elements.ts +2 -13
- package/src/formats/csv/exporter.ts +19 -15
- package/src/formats/cx/importer.ts +2 -3
- package/src/formats/cx2/importer.ts +2 -3
- package/src/formats/cys/exporter.ts +4 -3
- package/src/formats/dot/exporter.ts +1 -1
- package/src/formats/dot/importer.ts +7 -17
- package/src/formats/gexf/exporter.ts +7 -5
- package/src/formats/gexf/schema.ts +1 -1
- package/src/formats/json/exporter.ts +1 -1
- package/src/formats/json/importer.ts +4 -7
- package/src/formats/obo/syntax.ts +35 -31
- package/src/formats/pajek/exporter.ts +5 -4
- package/src/formats/pajek/importer.ts +3 -13
- package/src/formats/pajek/syntax.ts +1 -1
- package/src/formats/xgmml/constants.ts +1 -1
- package/src/formats/xgmml/emit.ts +1 -1
- package/src/formats/xgmml/exporter.ts +4 -3
- package/src/types.ts +6 -0
- package/dist/chunks/exporter-D23CKNqF.js.map +0 -1
- package/dist/chunks/exporter-DhtW6FxK.js.map +0 -1
- package/dist/chunks/importer-BSALvkui.js.map +0 -1
- package/dist/chunks/importer-BVRE--Un.js.map +0 -1
- package/dist/chunks/importer-BZB7iP9r.js.map +0 -1
- package/dist/chunks/importer-CIAzt-wo.js.map +0 -1
- package/dist/chunks/importer-z_FL4VMb.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphFormatError, INVALID_INDEX } from "@graphty/graph-format";
|
|
2
|
-
import { S as SINK_OPTION_CODE, O as OPTION_IGNORED_CODE, R as ROLE_TAKEN_CODE, ay as RENAMED_CODE, I as ID_MERGED_CODE, i as DANGLING_REFERENCE_CODE, g as UNKNOWN_ELEMENT_CODE, o as DUPLICATE_ATTRIBUTE_CODE, n as DUPLICATE_NODE_CODE, a3 as BAD_VALUE_CODE, t as MISSING_ID_CODE, w as UNKNOWN_ENCODING_CODE, x as ENCODING_FALLBACK_CODE, y as INVALID_ENCODING_CODE, z as INVALID_UTF8_CODE, E as EMPTY_INPUT_CODE, F as ELEMENT_ISSUE, G as INPUT_ISSUE, al as resolveImportOptions, a8 as ImportReportBuilder, ao as reportSinkOptions, an as reportUnusedOptions, am as throwIfAborted, b as plural, a1 as declareResolved, ar as IdCoercer, aq as DirectionResolver, $ as agree, az as LineReader, c as capabilities, L as LOSS, au as ROLE_ASSUMED_CODE, aA as NODE_ORDER_CODE, aB as GRAPH_COLUMN_AS_METADATA_CODE, aC as TYPEDEF_NODES_CODE, aD as RELATION_ASSUMED_CODE, at as COLUMN_AS_PROPERTY_VALUE_CODE, r as resolveExportOptions, p as pairFolding, e as explicitWeights, av as formatNumber } from "./export-
|
|
3
|
-
import { S as SYNONYM_SCOPES, O as OBO_NODE_COLUMNS, o as oboColumnDecl, P as PLACEHOLDER_COLUMN, f as framelessNodes, m as movedNodes, s as slotColumn, c as capabilityNotes, e as emptyColumnNotes, a as cellOf, F as FRAME_KINDS$1, U as UNWRITTEN_ROLES, n as notePropertyColumn, b as fitsVocabulary, i as isQualifierRecord, t as textOf } from "./ontology-export-
|
|
2
|
+
import { S as SINK_OPTION_CODE, O as OPTION_IGNORED_CODE, R as ROLE_TAKEN_CODE, ay as RENAMED_CODE, I as ID_MERGED_CODE, i as DANGLING_REFERENCE_CODE, g as UNKNOWN_ELEMENT_CODE, o as DUPLICATE_ATTRIBUTE_CODE, n as DUPLICATE_NODE_CODE, a3 as BAD_VALUE_CODE, t as MISSING_ID_CODE, w as UNKNOWN_ENCODING_CODE, x as ENCODING_FALLBACK_CODE, y as INVALID_ENCODING_CODE, z as INVALID_UTF8_CODE, E as EMPTY_INPUT_CODE, F as ELEMENT_ISSUE, G as INPUT_ISSUE, al as resolveImportOptions, a8 as ImportReportBuilder, ao as reportSinkOptions, an as reportUnusedOptions, am as throwIfAborted, b as plural, a1 as declareResolved, ar as IdCoercer, aq as DirectionResolver, $ as agree, az as LineReader, c as capabilities, L as LOSS, au as ROLE_ASSUMED_CODE, aA as NODE_ORDER_CODE, aB as GRAPH_COLUMN_AS_METADATA_CODE, aC as TYPEDEF_NODES_CODE, aD as RELATION_ASSUMED_CODE, at as COLUMN_AS_PROPERTY_VALUE_CODE, r as resolveExportOptions, p as pairFolding, e as explicitWeights, av as formatNumber } from "./export-Dq4U8Ubq.js";
|
|
3
|
+
import { S as SYNONYM_SCOPES, O as OBO_NODE_COLUMNS, o as oboColumnDecl, P as PLACEHOLDER_COLUMN, f as framelessNodes, m as movedNodes, s as slotColumn, c as capabilityNotes, e as emptyColumnNotes, a as cellOf, F as FRAME_KINDS$1, U as UNWRITTEN_ROLES, n as notePropertyColumn, b as fitsVocabulary, i as isQualifierRecord, t as textOf } from "./ontology-export-C5Xd3W-7.js";
|
|
4
4
|
import { j as joinText, e as encodeChunks } from "./writer-DxjgHwSe.js";
|
|
5
5
|
const ESCAPES = Object.freeze({
|
|
6
6
|
n: "\n",
|
|
@@ -14,14 +14,14 @@ function unescapeObo(text) {
|
|
|
14
14
|
}
|
|
15
15
|
let out = "";
|
|
16
16
|
for (let i = 0; i < text.length; i++) {
|
|
17
|
-
const ch = text
|
|
17
|
+
const ch = text.charAt(i);
|
|
18
18
|
if (ch !== "\\") {
|
|
19
19
|
out += ch;
|
|
20
20
|
continue;
|
|
21
21
|
}
|
|
22
22
|
i++;
|
|
23
23
|
if (i < text.length) {
|
|
24
|
-
const next = text
|
|
24
|
+
const next = text.charAt(i);
|
|
25
25
|
out += ESCAPES[next] ?? next;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -29,7 +29,7 @@ function unescapeObo(text) {
|
|
|
29
29
|
}
|
|
30
30
|
function isEscaped(text, index) {
|
|
31
31
|
let run = 0;
|
|
32
|
-
for (let i = index - 1; i >= 0 && text
|
|
32
|
+
for (let i = index - 1; i >= 0 && text.charAt(i) === "\\"; i--) {
|
|
33
33
|
run++;
|
|
34
34
|
}
|
|
35
35
|
return run % 2 === 1;
|
|
@@ -41,8 +41,8 @@ function splitFormFeeds(line) {
|
|
|
41
41
|
const pieces = [];
|
|
42
42
|
let quoted = false;
|
|
43
43
|
let start = 0;
|
|
44
|
-
for (let i = 0; i < line.length; i += line
|
|
45
|
-
const ch = line
|
|
44
|
+
for (let i = 0; i < line.length; i += line.charAt(i) === "\\" ? 2 : 1) {
|
|
45
|
+
const ch = line.charAt(i);
|
|
46
46
|
if (ch === '"') {
|
|
47
47
|
quoted = !quoted;
|
|
48
48
|
} else if (ch === "\f" && !quoted) {
|
|
@@ -58,11 +58,11 @@ function endsWithContinuation(line) {
|
|
|
58
58
|
}
|
|
59
59
|
function splitTagValue(line) {
|
|
60
60
|
for (let i = 0; i < line.length; i++) {
|
|
61
|
-
if (line
|
|
61
|
+
if (line.charAt(i) === "\\") {
|
|
62
62
|
i++;
|
|
63
63
|
continue;
|
|
64
64
|
}
|
|
65
|
-
if (line
|
|
65
|
+
if (line.charAt(i) === ":") {
|
|
66
66
|
return { tag: unescapeObo(line.slice(0, i).trim()), rest: line.slice(i + 1).trimStart() };
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -71,12 +71,12 @@ function splitTagValue(line) {
|
|
|
71
71
|
function stripComment(rest) {
|
|
72
72
|
let quoted = false;
|
|
73
73
|
for (let i = 0; i < rest.length; i++) {
|
|
74
|
-
const ch = rest
|
|
74
|
+
const ch = rest.charAt(i);
|
|
75
75
|
if (ch === "\\") {
|
|
76
76
|
i++;
|
|
77
77
|
continue;
|
|
78
78
|
}
|
|
79
|
-
const atStart = i === 0 || rest
|
|
79
|
+
const atStart = i === 0 || rest.charAt(i - 1) === " " || rest.charAt(i - 1) === " ";
|
|
80
80
|
if (ch === '"' && (quoted || atStart)) {
|
|
81
81
|
quoted = !quoted;
|
|
82
82
|
} else if (ch === "!" && !quoted && atStart) {
|
|
@@ -93,7 +93,7 @@ function splitQualifiers(value) {
|
|
|
93
93
|
const parsed = [];
|
|
94
94
|
let end = value.length;
|
|
95
95
|
let badBlock = null;
|
|
96
|
-
while (end > 0 && value
|
|
96
|
+
while (end > 0 && value.charAt(end - 1) === "}" && !isEscaped(value, end - 1)) {
|
|
97
97
|
const open = blocks.get(end - 1) ?? -1;
|
|
98
98
|
const block = open < 0 ? null : parseQualifiers(value.slice(open + 1, end - 1));
|
|
99
99
|
if (block === null) {
|
|
@@ -102,7 +102,7 @@ function splitQualifiers(value) {
|
|
|
102
102
|
}
|
|
103
103
|
parsed.push(block);
|
|
104
104
|
end = open;
|
|
105
|
-
while (end > 0 && /\s/.test(value
|
|
105
|
+
while (end > 0 && /\s/.test(value.charAt(end - 1))) {
|
|
106
106
|
end--;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -120,7 +120,7 @@ function braceBlocks(value) {
|
|
|
120
120
|
let quoted = false;
|
|
121
121
|
let open = -1;
|
|
122
122
|
for (let i = 0; i < value.length; i++) {
|
|
123
|
-
const ch = value
|
|
123
|
+
const ch = value.charAt(i);
|
|
124
124
|
if (ch === "\\") {
|
|
125
125
|
i++;
|
|
126
126
|
continue;
|
|
@@ -139,8 +139,8 @@ function braceBlocks(value) {
|
|
|
139
139
|
function unclosedBlock(value) {
|
|
140
140
|
let quoted = false;
|
|
141
141
|
let open = -1;
|
|
142
|
-
for (let i = 0; i < value.length; i += value
|
|
143
|
-
const ch = value
|
|
142
|
+
for (let i = 0; i < value.length; i += value.charAt(i) === "\\" ? 2 : 1) {
|
|
143
|
+
const ch = value.charAt(i);
|
|
144
144
|
if (ch === "\\") {
|
|
145
145
|
continue;
|
|
146
146
|
}
|
|
@@ -175,7 +175,7 @@ function parseQualifiers(inner) {
|
|
|
175
175
|
const n = inner.length;
|
|
176
176
|
let any = false;
|
|
177
177
|
while (i < n) {
|
|
178
|
-
while (i < n && (inner
|
|
178
|
+
while (i < n && (inner.charAt(i) === " " || inner.charAt(i) === " " || inner.charAt(i) === ",")) {
|
|
179
179
|
i++;
|
|
180
180
|
}
|
|
181
181
|
if (i >= n) {
|
|
@@ -190,11 +190,11 @@ function parseQualifiers(inner) {
|
|
|
190
190
|
return null;
|
|
191
191
|
}
|
|
192
192
|
i = eq + 1;
|
|
193
|
-
while (i < n && (inner
|
|
193
|
+
while (i < n && (inner.charAt(i) === " " || inner.charAt(i) === " ")) {
|
|
194
194
|
i++;
|
|
195
195
|
}
|
|
196
196
|
let value;
|
|
197
|
-
if (inner
|
|
197
|
+
if (inner.charAt(i) === '"') {
|
|
198
198
|
const end = closingQuote(inner, i + 1);
|
|
199
199
|
if (end < 0) {
|
|
200
200
|
return null;
|
|
@@ -203,8 +203,8 @@ function parseQualifiers(inner) {
|
|
|
203
203
|
i = end + 1;
|
|
204
204
|
} else {
|
|
205
205
|
let end = i;
|
|
206
|
-
while (end < n && inner
|
|
207
|
-
end += inner
|
|
206
|
+
while (end < n && inner.charAt(end) !== ",") {
|
|
207
|
+
end += inner.charAt(end) === "\\" ? 2 : 1;
|
|
208
208
|
}
|
|
209
209
|
value = unescapeObo(inner.slice(i, end).trim());
|
|
210
210
|
i = end;
|
|
@@ -216,9 +216,9 @@ function parseQualifiers(inner) {
|
|
|
216
216
|
}
|
|
217
217
|
function closingQuote(text, from) {
|
|
218
218
|
for (let i = from; i < text.length; i++) {
|
|
219
|
-
if (text
|
|
219
|
+
if (text.charAt(i) === "\\") {
|
|
220
220
|
i++;
|
|
221
|
-
} else if (text
|
|
221
|
+
} else if (text.charAt(i) === '"') {
|
|
222
222
|
return i;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
@@ -229,7 +229,7 @@ function tokenize(value) {
|
|
|
229
229
|
const n = value.length;
|
|
230
230
|
let i = 0;
|
|
231
231
|
while (i < n) {
|
|
232
|
-
const ch = value
|
|
232
|
+
const ch = value.charAt(i);
|
|
233
233
|
if (ch === " " || ch === " ") {
|
|
234
234
|
i++;
|
|
235
235
|
continue;
|
|
@@ -238,8 +238,8 @@ function tokenize(value) {
|
|
|
238
238
|
const end2 = closingQuote(value, i + 1);
|
|
239
239
|
const stop = end2 < 0 ? n : end2;
|
|
240
240
|
let after = stop + 1;
|
|
241
|
-
if (end2 >= 0 && value
|
|
242
|
-
while (after < n && value
|
|
241
|
+
if (end2 >= 0 && value.charAt(after) === "@") {
|
|
242
|
+
while (after < n && value.charAt(after) !== " " && value.charAt(after) !== " ") {
|
|
243
243
|
after++;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
@@ -260,8 +260,8 @@ function tokenize(value) {
|
|
|
260
260
|
continue;
|
|
261
261
|
}
|
|
262
262
|
let end = i;
|
|
263
|
-
while (end < n && value
|
|
264
|
-
end += value
|
|
263
|
+
while (end < n && value.charAt(end) !== " " && value.charAt(end) !== " ") {
|
|
264
|
+
end += value.charAt(end) === "\\" ? 2 : 1;
|
|
265
265
|
}
|
|
266
266
|
tokens.push({ kind: "word", text: unescapeObo(value.slice(i, Math.min(end, n))), unterminated: false });
|
|
267
267
|
i = end;
|
|
@@ -271,7 +271,7 @@ function tokenize(value) {
|
|
|
271
271
|
function closingBracket(text, from) {
|
|
272
272
|
let quoted = false;
|
|
273
273
|
for (let i = from; i < text.length; i++) {
|
|
274
|
-
const ch = text
|
|
274
|
+
const ch = text.charAt(i);
|
|
275
275
|
if (ch === "\\") {
|
|
276
276
|
i++;
|
|
277
277
|
} else if (ch === '"') {
|
|
@@ -286,9 +286,9 @@ function parseXref(raw) {
|
|
|
286
286
|
const { value, qualifiers } = splitQualifiers(raw.trim());
|
|
287
287
|
let quote = -1;
|
|
288
288
|
for (let i = 0; i < value.length; i++) {
|
|
289
|
-
if (value
|
|
289
|
+
if (value.charAt(i) === "\\") {
|
|
290
290
|
i++;
|
|
291
|
-
} else if (value
|
|
291
|
+
} else if (value.charAt(i) === '"') {
|
|
292
292
|
quote = i;
|
|
293
293
|
break;
|
|
294
294
|
}
|
|
@@ -318,7 +318,7 @@ function parseXrefList(inner) {
|
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
320
|
for (let i = 0; i < inner.length; i++) {
|
|
321
|
-
const ch = inner
|
|
321
|
+
const ch = inner.charAt(i);
|
|
322
322
|
if (ch === "\\") {
|
|
323
323
|
i++;
|
|
324
324
|
} else if (ch === '"') {
|
|
@@ -339,7 +339,7 @@ function hasStrayBrace(value) {
|
|
|
339
339
|
let quoted = false;
|
|
340
340
|
let listed = false;
|
|
341
341
|
for (let i = 0; i < value.length; i++) {
|
|
342
|
-
const ch = value
|
|
342
|
+
const ch = value.charAt(i);
|
|
343
343
|
if (ch === "\\") {
|
|
344
344
|
i++;
|
|
345
345
|
} else if (ch === '"') {
|
|
@@ -3462,4 +3462,4 @@ export {
|
|
|
3462
3462
|
oboImporter as c,
|
|
3463
3463
|
oboExporter as o
|
|
3464
3464
|
};
|
|
3465
|
-
//# sourceMappingURL=exporter-
|
|
3465
|
+
//# sourceMappingURL=exporter-BUosqV0K.js.map
|