summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-05-29 16:34:39 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-05-29 22:06:46 +0900
commitcc71cffba5264d8e1d0c4e1e5de82963242ceb49 (patch)
tree2a2eb9f5902eabbe874d7af4a7df3c4fd484ab88
parentf0d31187beca19016df27ea6ff573e9b549f2829 (diff)
downloadtdeutils-cc71cffba5264d8e1d0c4e1e5de82963242ceb49.tar.gz
tdeutils-cc71cffba5264d8e1d0c4e1e5de82963242ceb49.zip
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> (cherry picked from commit 04a8b70fbaebca4f760535d33563a3e2137d9c5d)
-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))
{