Commit 7b936c8c authored by Simon Schmeißer's avatar Simon Schmeißer

accept trailing whitespace on vcard

this enables parsing of codes created by https://www.qr-code-generator.com/
parent 69957451
......@@ -28,7 +28,7 @@ bool Qrca::isUrl(const QString &text) {
}
bool Qrca::isVCard(const QString &text) {
return (text.startsWith("BEGIN:VCARD") && text.endsWith("END:VCARD"));
return (text.startsWith("BEGIN:VCARD") && text.trimmed().endsWith("END:VCARD"));
}
void Qrca::saveVCard(const QString &text) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment