mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
[Annotation] Strip out the array index in the path only when the path is from a terminal node (bug 1847733)
This commit is contained in:
parent
19c712c2d0
commit
e2f20a1afe
5 changed files with 44 additions and 2 deletions
|
@ -1630,7 +1630,8 @@ class WidgetAnnotation extends Annotation {
|
|||
if (
|
||||
data.fieldName &&
|
||||
/\[\d+\]$/.test(data.fieldName) &&
|
||||
!dict.has("Kids")
|
||||
!dict.has("Kids") &&
|
||||
dict.has("T")
|
||||
) {
|
||||
data.baseFieldName = data.fieldName.substring(
|
||||
0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue