fix handling of | in s/// commands of built-in sed

Change-Id: I139d007d68fb0aed4d9fbe57a14d1ede81ba40d8
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Oswald Buddenhagen 2013-11-20 14:58:22 +01:00 committed by The Qt Project
parent ef510adea5
commit a0e32cbf74

View File

@ -106,7 +106,7 @@ static int doSed(int argc, char **argv)
}
}
if (phase == 1
&& (c == QLatin1Char('+') || c == QLatin1Char('?')
&& (c == QLatin1Char('+') || c == QLatin1Char('?') || c == QLatin1Char('|')
|| c == QLatin1Char('{') || c == QLatin1Char('}')
|| c == QLatin1Char('(') || c == QLatin1Char(')'))) {
// translate sed rx to QRegExp