Fix the QRKeyScanner issue on reading footer
This commit is contained in:
parent
1e1d6f0f44
commit
87d1dd5be1
2 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue