aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ruleparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp
index ebdba4a..b11ea5b 100644
--- a/src/ruleparser.cpp
+++ b/src/ruleparser.cpp
@@ -188,7 +188,7 @@ void Rules::load(const QString &filename)
qFatal("Undeclared variable: %s", qPrintable(variableLine.cap(1)));
}
}
- line = line.replace(variableLine, replacement);
+ line = line.replace(variableLine.cap(0), replacement);
}
if (state == ReadingRepository) {
if (matchBranchLine.exactMatch(line)) {