don't allow leading spaces in user id
This commit is contained in:
parent
a6b81b127b
commit
109f8a5d20
|
@ -391,6 +391,9 @@ function formatUserIds(options) {
|
|||
if (!util.isString(id.name) || (id.email && !util.isEmailAddress(id.email))) {
|
||||
throw new Error('Invalid user id format');
|
||||
}
|
||||
if (id.name) {
|
||||
id.name += ' ';
|
||||
}
|
||||
return id.name + '<' + id.email + '>';
|
||||
});
|
||||
return options;
|
||||
|
|
Loading…
Reference in New Issue
Block a user