Skip to content

Commit

Permalink
Merge pull request mozilla#19184 from calixteman/issue19182
Browse files Browse the repository at this point in the history
Get the first codepoint instead of the first char when using the toUnicode map
  • Loading branch information
calixteman authored Dec 6, 2024
2 parents c198e0b + 6fe6b6d commit 23c42f8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/to_unicode_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ToUnicodeMap {

forEach(callback) {
for (const charCode in this._map) {
callback(charCode, this._map[charCode].charCodeAt(0));
callback(charCode, this._map[charCode].codePointAt(0));
}
}

Expand Down
1 change: 1 addition & 0 deletions test/pdfs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -687,3 +687,4 @@
!rotated_ink.pdf
!inks.pdf
!inks_basic.pdf
!issue19182.pdf
Binary file added test/pdfs/issue19182.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11201,5 +11201,12 @@
"id": "20R"
}
}
},
{
"id": "issue19182",
"file": "pdfs/issue19182.pdf",
"md5": "497370ab55cbb9c60bb0ea4b5d9e4d08",
"rounds": 1,
"type": "eq"
}
]

0 comments on commit 23c42f8

Please sign in to comment.