diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-07-08 16:19:42 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-07-08 16:36:20 +0300 |
commit | 3924a6c491aa48cab5d9a345e65f7eabfdd06440 (patch) | |
tree | a6825e0654686e55ed309f94d70259da6ef6f440 /src | |
parent | 7ec2e09ddafb829c5c71869de99c58d2153a2d02 (diff) |
Use lazy lookahead
Diffstat (limited to 'src')
-rw-r--r-- | src/libsync/httplogger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsync/httplogger.cpp b/src/libsync/httplogger.cpp index 53fdc2d61..4f82262ee 100644 --- a/src/libsync/httplogger.cpp +++ b/src/libsync/httplogger.cpp @@ -29,7 +29,7 @@ const QByteArray XRequestId(){ bool isTextBody(const QString &s) { - static const QRegularExpression regexp(QStringLiteral("^(text/.*|(application/(xml|.*json|x-www-form-urlencoded)(;|$)))")); + static const QRegularExpression regexp(QStringLiteral("^(text/.*?|(application/(xml|.*?json|x-www-form-urlencoded)(;|$)))")); return regexp.match(s).hasMatch(); } |