Fix the QRKeyScanner issue on reading footer

This commit is contained in:
Mingshen Sun 2021-01-09 16:26:56 -08:00
parent 1e1d6f0f44
commit 87d1dd5be1
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
2 changed files with 8 additions and 1 deletions

View file

@ -64,7 +64,7 @@ struct QRKeyScanner {
// Update the list of scanned segments and return.
segments.append(segment)
if scannedKey.contains(keyType.footerStart), scannedKey.hasSuffix(keyType.footerEnd) {
if scannedKey.contains(keyType.footerStart), scannedKey.trimmed.hasSuffix(keyType.footerEnd) {
return .completed
}
previousResult = .scanned(segments.count)