mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 02:07:15 +08:00
25 lines
1.2 KiB
Diff
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()) {
|
|
|