Merge pull request #140 from vasvlad/master

Fixed problem with symbol '?' in string for encoding
This commit is contained in:
Nikolaos Ftylitakis 2019-09-29 00:14:58 +03:00 committed by GitHub
commit 993ef49fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ QImage QZXingImageProvider::requestImage(const QString &id, QSize *size, const Q
QZXing::EncoderFormat format = QZXing::EncoderFormat_QR_CODE;
QZXing::EncodeErrorCorrectionLevel correctionLevel = QZXing::EncodeErrorCorrectionLevel_L;
int customSettingsIndex = id.lastIndexOf('?');
int customSettingsIndex = id.lastIndexOf(QRegExp("\?[cf]"));
if(customSettingsIndex >= 0)
{
int startOfDataIndex = slashIndex + 1;