Skip to content

Commit

Permalink
Remove replacing underscores with spaces in scanned NFC tag on iOS (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored and pull[bot] committed Sep 21, 2023
1 parent 39e60b1 commit 6e9eff1
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,7 @@ - (void)readerSession:(nonnull NFCNDEFReaderSession *)session didDetectNDEFs:(no
NSURL * payloadURI = [payload wellKnownTypeURIPayload];
NSLog(@"Payload text:%@", payloadURI);
if (payloadURI) {
/* CHIP Issue #415
Once #415 goes in, there will b no need to replace _ with spaces.
*/
NSString * qrCode = [[payloadURI absoluteString] stringByReplacingOccurrencesOfString:@"_"
withString:@" "];
NSString * qrCode = [payloadURI absoluteString];
NSLog(@"Scanned code string:%@", qrCode);
[self scannedQRCode:qrCode];
}
Expand Down

0 comments on commit 6e9eff1

Please sign in to comment.