Merge pull request #2699 from android-password-store/accept-invalid-emails
Bump openpgp-api and add a test for TLD-less email
This commit is contained in:
commit
fdd7c00a80
2 changed files with 10 additions and 2 deletions
|
@ -130,4 +130,12 @@ public class SplitUserIdTest {
|
|||
Assert.assertEquals("this is a comment", info.comment);
|
||||
}
|
||||
|
||||
}
|
||||
@Test
|
||||
public void splitUserIdWithEmailWithoutTldShouldReturnNameAndEmail() {
|
||||
OpenPgpUtils.UserId info = KeyRing.splitUserId("Max Mustermann <max@localhost>");
|
||||
Assert.assertEquals("Max Mustermann", info.name);
|
||||
Assert.assertEquals("max@localhost", info.email);
|
||||
Assert.assertNull(info.comment);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
2
extern/openpgp-api-lib
vendored
2
extern/openpgp-api-lib
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 89dd28164af4ad48069977e53deaca49b7d0e291
|
||||
Subproject commit 8bc98b412bd7cd546b33eac1ced1c1cb302906ca
|
Loading…
Reference in a new issue