summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-05-29 07:34:39 (GMT)
committer Michele Calgaro <michele.calgaro@yahoo.it>2018-05-29 07:43:29 (GMT)
commit04a8b70fbaebca4f760535d33563a3e2137d9c5d (patch)
treeac2eeafac4e48b976c189ee451ed900791cd2bae
parent4d3ca8ffb57589a3a401be25f60da70d9f21ee33 (diff)
downloadtdeutils-04a8b70f.zip
tdeutils-04a8b70f.tar.gz
Ark: Fixed support for rar files. This relates to bug 2794.
Special thanks to Ray Vine <ray-v@inbox.lv> whose patch inspired this one. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--ark/rar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ark/rar.cpp b/ark/rar.cpp
index 6799b64..68aa604 100644
--- a/ark/rar.cpp
+++ b/ark/rar.cpp
@@ -99,7 +99,7 @@ bool RarArch::processLine( const TQCString &line )
// Look for rar/unrar version first
if (!m_version)
{
- TQRegExp versionRegExp (TQString::fromLatin1 ("RAR\\s(\\d+)\\.(\\d+)\\s(beta (\\d+))?\\s+Copyright.*"));
+ TQRegExp versionRegExp (TQString::fromLatin1 ("(?:UN)?RAR\\s+(\\d+)\\.(\\d+)(\\s+beta\\s+(\\d+))?\\s.*Copyright.*"));
if (versionRegExp.exactMatch (uline))
{