Skip to content
Snippets Groups Projects
Commit 5536e063 authored by Langella Olivier's avatar Langella Olivier
Browse files

parsing tandem version is OK

parent 057f78d8
No related branches found
No related tags found
No related merge requests found
......@@ -277,13 +277,16 @@ Utils::checkXtandemVersion(const QString &tandem_bin_path)
qDebug() << result.constData();
QRegExp parse_version("X! TANDEM ([A-Z]+) \\((.*)\\)");
QRegExp parse_version("(.*) TANDEM ([A-Z,a-z]+) \\(([^ ,^\\)]*)(.*)");
qDebug() << parse_version;
// Pattern patt = Pattern.compile("X! TANDEM [A-Z]+ \\((.*)\\)",
// Pattern.CASE_INSENSITIVE);
if(parse_version.exactMatch(result.constData()))
{
version_return = parse_version.capturedTexts().join(" ");
version_return = QString("X!Tandem %1 %2")
.arg(parse_version.capturedTexts()[2])
.arg(parse_version.capturedTexts()[3]); //.join(" ");
}
QProcess::ExitStatus Status = xt_process->exitStatus();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment