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:
Dominik Schürmann 2021-05-02 19:30:02 +02:00 committed by GitHub
commit fdd7c00a80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -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);
}
}

@ -1 +1 @@
Subproject commit 89dd28164af4ad48069977e53deaca49b7d0e291
Subproject commit 8bc98b412bd7cd546b33eac1ced1c1cb302906ca