Revision f5b682e0
Von Christian Ehringfeld vor mehr als 8 Jahren hinzugefügt
src/querybuilder.cpp | ||
---|---|---|
QRegularExpressionMatchIterator i = reg.globalMatch(type, 0,
|
||
QRegularExpression::PartialPreferFirstMatch);
|
||
short s = 0;
|
||
bool ok = false;
|
||
QString before = "";
|
||
while (i.hasNext() && s < 2) {
|
||
before = i.next().captured();
|
||
if (tMap->contains(before)) {
|
||
ok = true;
|
||
}
|
||
if (ok) {
|
||
return before.replace(QRegularExpression::escape("/\\(.+\\)/"),
|
||
"(" + i.next().captured() + ")");
|
||
}
|
Auch abrufbar als: Unified diff
fix