diff --git a/src/webui/api/torrentscontroller.cpp b/src/webui/api/torrentscontroller.cpp index 5a087f87b..7eec41e00 100644 --- a/src/webui/api/torrentscontroller.cpp +++ b/src/webui/api/torrentscontroller.cpp @@ -2155,7 +2155,7 @@ void TorrentsController::setCommentAction() throw APIError(APIErrorType::NotFound); QString comment = params()[u"comment"_s].trimmed(); - comment.replace(QRegularExpression(u"\r?\n|\r"_s), u" "_s); + comment.replace(QRegularExpression(u"\r?\n"_s), u" "_s); torrent->setComment(comment); setResult(QString());