fix qr doc comment for vcard

This commit is contained in:
Simon Laux
2021-02-14 21:26:41 +01:00
committed by link2xt
parent 3ead349ccf
commit 309bea8e2a

View File

@@ -365,9 +365,9 @@ static VCARD_NAME_RE: Lazy<regex::Regex> =
static VCARD_EMAIL_RE: Lazy<regex::Regex> =
Lazy::new(|| regex::Regex::new(r"(?m)^EMAIL([^:\n]*):([^;\n]*)").unwrap());
/// Extract address for the matmsg scheme.
/// Extract address for the vcard scheme.
///
/// Scheme: `VCARD:BEGIN\nN:last name;first name;...;\nEMAIL;<type>:addr...;
/// Scheme: `VCARD:BEGIN\nN:last name;first name;...;\nEMAIL;<type>:addr...;`
#[allow(clippy::indexing_slicing)]
async fn decode_vcard(context: &Context, qr: &str) -> Lot {
let name = VCARD_NAME_RE