mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-07 01:21:35 +00:00
Switch back to using upstream email-address library (#998)
This commit is contained in:
committed by
Daniel Huigens
parent
810b8daab2
commit
528fbfb017
@@ -677,7 +677,7 @@ export default {
|
||||
throw new Error('User id string is too long');
|
||||
}
|
||||
try {
|
||||
const { name, address: email, comments } = emailAddresses.parseOneAddress(userid);
|
||||
const { name, address: email, comments } = emailAddresses.parseOneAddress({ input: userid, atInDisplayName: true });
|
||||
return { name, email, comment: comments.replace(/^\(|\)$/g, '') };
|
||||
} catch(e) {
|
||||
throw new Error('Invalid user id format');
|
||||
|
||||
Reference in New Issue
Block a user