diff options
author | Neal H. Walfield <neal@pep.foundation> | 2023-02-09 12:26:13 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2023-02-09 12:32:20 +0100 |
commit | bd27265dced8b4e18a3d3b7b16fb81cd11caf563 (patch) | |
tree | 3ada4af8d449e78c94254a1332768247fea4c8de | |
parent | 24a20c0ef72547a40db450b3ce457b389cb56ae0 (diff) |
openpgp: Reproducer for #983neal/issuer-983
- See #983
-rw-r--r-- | openpgp/src/packet/userid.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openpgp/src/packet/userid.rs b/openpgp/src/packet/userid.rs index b113a955..65f4d47c 100644 --- a/openpgp/src/packet/userid.rs +++ b/openpgp/src/packet/userid.rs @@ -1088,6 +1088,11 @@ mod tests { g &= c("Vorname Nachname, Dr. <dr@example.org>", Some("Vorname Nachname, Dr."), None, Some("dr@example.org"), None); + g &= c("test (->) <test@vollkorn.cryptobitch.de>", + Some("test"), Some("->"), Some("test@vollkorn.cryptobitch.de"), None); + g &= c("test -> <test@vollkorn.cryptobitch.de>", + Some("test ->"), None, Some("test@vollkorn.cryptobitch.de"), None); + // Only the last comment counts as a comment. The rest if // part of the name. g &= c("Foo (Bar) (Baz)", |