ezqms-1160: fix slice type (#6280)

This commit is contained in:
Alexey Zinoviev 2024-08-07 17:22:18 +04:00 committed by GitHub
parent 3c424b8c31
commit f5cd4bf169
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -130,8 +130,8 @@ const metadataTableCell = z.object({
col: z.number().min(0), col: z.number().min(0),
slice: z slice: z
.object({ .object({
start: z.number().min(0).optional(), start: z.number().optional(),
end: z.number().min(0).optional() end: z.number().optional()
}) })
.optional() .optional()
}) })

View File

@ -1,14 +1,14 @@
{ {
"prefix": "SOP5", "prefix": "I-SOP",
"type": "toc", "type": "toc",
"metadata": { "metadata": {
"in": "page-header-table-row", "in": "page-header-table-row",
"headerIdx": 2, "headerIdx": 1,
"docName": { "docName": {
"extract": { "row": 2, "col": 1 } "extract": { "row": 1, "col": 0, "slice": { "start": 7 } }
}, },
"docId": { "docId": {
"extract": { "row": 2, "col": 0 } "extract": { "row": 2, "col": 1, "slice": { "start": 9, "end": -3 } }
} }
}, },
"spec": { "spec": {
@ -21,7 +21,7 @@
"tags": ["h1"] "tags": ["h1"]
}, },
"start": { "start": {
"patterns": ["Table of contents", "Table des matières", "CONTENTS"], "patterns": ["Table of contents", "Table des matières", "CONTENTS", "TABLE OF CONTENTS"],
"tags": ["h1", "h2", "h3", "p"] "tags": ["h1", "h2", "h3", "p"]
}, },
"end": { "end": {