mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Get the first codepoint instead of the first char when using the toUnicode map
It fixes #19182.
This commit is contained in:
parent
c198e0b446
commit
6fe6b6d6b7
4 changed files with 9 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue