summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2019-11-25 09:26:35 +0100
committerNeal H. Walfield <neal@pep.foundation>2019-11-25 10:54:10 +0100
commit6b3574906ed2cd647a6d4f8dcb3243e3dd0d5616 (patch)
tree1b85ecc8fbd7c7ea8af27548d2ab8c3f5fb0f48e /openpgp
parentd2fc736800814e84a006bc4e7ee9cb11fd4e3bcf (diff)
openpgp: Fix regular expression.
- A non-capture group is indicated by '?:', not ':?'.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/packet/userid/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/packet/userid/mod.rs b/openpgp/src/packet/userid/mod.rs
index ac4cb9f1..77fca00a 100644
--- a/openpgp/src/packet/userid/mod.rs
+++ b/openpgp/src/packet/userid/mod.rs
@@ -313,7 +313,7 @@ impl ConventionallyParsedUserID {
// not allowed.
let wrapped_addr_spec
= format!("{}(?P<wrapped_addr_spec_name>{})?{}\
- (:?{})?{}\
+ (?:{})?{}\
<(?P<wrapped_addr_spec>{})>",
optional_ws, name, optional_ws,
comment("wrapped_addr_spec"), optional_ws,