mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-19 14:48:59 +00:00
Support unicode surrogate code points
This commit is contained in:
@@ -195,7 +195,7 @@ Key.prototype.getKeyIds = function() {
|
||||
*/
|
||||
Key.prototype.getUserIds = function() {
|
||||
return this.users.map(user => {
|
||||
return user.userId ? util.encode_utf8(user.userId.userid) : null;
|
||||
return user.userId ? user.userId.userid : null;
|
||||
}).filter(userid => userid !== null);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user