Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-07-08 16:19:42 +0300
committerHannah von Reth <vonreth@kde.org>2022-07-08 16:36:20 +0300
commit3924a6c491aa48cab5d9a345e65f7eabfdd06440 (patch)
treea6825e0654686e55ed309f94d70259da6ef6f440 /src
parent7ec2e09ddafb829c5c71869de99c58d2153a2d02 (diff)
Use lazy lookahead
Diffstat (limited to 'src')
-rw-r--r--src/libsync/httplogger.cpp2
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();
}