desktop/ark/ark-rar-path-with-space.patch
2015-12-15 21:20:24 +00:00

25 lines
1.2 KiB
Diff

diff --git a/plugins/clirarplugin/cliplugin.cpp b/plugins/clirarplugin/cliplugin.cpp
index 23eb6cc..9b3e086 100644
--- a/plugins/clirarplugin/cliplugin.cpp
+++ b/plugins/clirarplugin/cliplugin.cpp
@@ -172,7 +172,8 @@ void CliPlugin::handleUnrar5Line(const QString &line) {
if (m_parseState == ParseStateComment) {
// RegExp matching end of comment field.
- QRegularExpression rxCommentEnd(QStringLiteral("^Archive: \\S+$"));
+ // FIXME: Comment itself could also contain the Archive path string here.
+ QRegularExpression rxCommentEnd(QStringLiteral("^Archive: .+$"));
if (rxCommentEnd.match(line).hasMatch()) {
m_parseState = ParseStateHeader;
@@ -293,7 +294,8 @@ void CliPlugin::handleUnrar4Line(const QString &line) {
if (m_parseState == ParseStateComment) {
// RegExp matching end of comment field.
- QRegularExpression rxCommentEnd(QStringLiteral("^(Solid archive|Archive|Volume) \\S+$"));
+ // FIXME: Comment itself could also contain the Archive path string here.
+ QRegularExpression rxCommentEnd(QStringLiteral("^(Solid archive|Archive|Volume) .+$"));
if (rxCommentEnd.match(line).hasMatch()) {