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>
pull/1/head
Michele Calgaro 6 years ago
parent 4d3ca8ffb5
commit 04a8b70fba

@ -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))
{

Loading…
Cancel
Save