mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Guess that a checkbox belongs to a group in using its T value (bug 1838855)
This commit is contained in:
parent
04c31a55d2
commit
5c0054d58d
5 changed files with 76 additions and 4 deletions
|
@ -1674,6 +1674,11 @@ class PDFDocument {
|
|||
}
|
||||
}
|
||||
|
||||
if (!field.has("Kids") && /\[\d+\]$/.test(name)) {
|
||||
// We've a terminal node: strip the index.
|
||||
name = name.substring(0, name.lastIndexOf("["));
|
||||
}
|
||||
|
||||
if (!promises.has(name)) {
|
||||
promises.set(name, []);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue