Commit 94baa2ec authored by Volker Krause's avatar Volker Krause
Browse files

DB also has Railjet coach layouts in Germany

parent 13646212
Pipeline #272122 passed with stage
in 14 minutes and 51 seconds
......@@ -24,7 +24,7 @@ using namespace KPublicTransport;
static QString extractTrainNumber(const Line &line)
{
qDebug() << line.modeString() << line.name();
QRegularExpression regex(QStringLiteral("(?:ICE|IC|EC)\\s*(\\d+)"));
QRegularExpression regex(QStringLiteral("(?:ICE|IC|EC|RJ)\\s*(\\d+)"));
const auto match = regex.match(line.modeString() + line.name());
if (match.hasMatch()) {
return match.captured(1);
......
Supports Markdown
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