Commit ebadaf9d authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

fix regular expressions for variable transformation

escape curly braces, as qregexp is a bit picky about that.
parent 945b3b41
......@@ -1707,9 +1707,9 @@ static QVariant version8EnvNodeTransform(const QVariant &var)
{
QString result = var.toString();
result.replace(QRegExp(QLatin1String("%SOURCEDIR%|\\$(SOURCEDIR\\b|{SOURCEDIR})")),
result.replace(QRegExp(QLatin1String("%SOURCEDIR%|\\$(SOURCEDIR\\b|\\{SOURCEDIR\\})")),
QLatin1String("%{sourceDir}"));
result.replace(QRegExp(QLatin1String("%BUILDDIR%|\\$(BUILDDIR\\b|{BUILDDIR})")),
result.replace(QRegExp(QLatin1String("%BUILDDIR%|\\$(BUILDDIR\\b|\\{BUILDDIR\\})")),
QLatin1String("%{buildDir}"));
#ifdef Q_OS_UNIX
for (int vStart = -1, i = 0; i < result.length(); ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment