diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-11-25 09:26:35 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-11-25 10:54:10 +0100 |
commit | 6b3574906ed2cd647a6d4f8dcb3243e3dd0d5616 (patch) | |
tree | 1b85ecc8fbd7c7ea8af27548d2ab8c3f5fb0f48e /openpgp/src/packet/userid/mod.rs | |
parent | d2fc736800814e84a006bc4e7ee9cb11fd4e3bcf (diff) |
openpgp: Fix regular expression.
- A non-capture group is indicated by '?:', not ':?'.
Diffstat (limited to 'openpgp/src/packet/userid/mod.rs')
-rw-r--r-- | openpgp/src/packet/userid/mod.rs | 2 |
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, |