Commit ebe069c8 authored by Volker Krause's avatar Volker Krause
Browse files

Include NightJet trains in supported types of the ÖBB vehicle layout API

parent 52b1f4c3
......@@ -23,7 +23,7 @@ using namespace KPublicTransport;
static QString trainNumber(Line line)
{
static QRegularExpression regex(QStringLiteral("(?:ICE|IC|EC|RJ|RJX)\\s*(\\d+)"));
static QRegularExpression regex(QStringLiteral("(?:ICE|IC|EC|RJ|RJX|NJ)\\s*(\\d+)"));
const auto match = regex.match(line.modeString() + line.name());
if (match.hasMatch()) {
return match.captured(1);
......
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