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

Parse one more platform encoding from IVV ASS responses

parent e961640e
Pipeline #94365 passed with stage
in 1 minute and 38 seconds
......@@ -61,7 +61,7 @@ IvvAssParser::LocationData IvvAssParser::parseLocation(const QJsonObject &stopOb
// location is a platform: split out platform name
if (stopObj.value(QLatin1String("subtype")).toString() == QLatin1String("Post")) {
static QRegularExpression rx(QStringLiteral(R"((.*) \((Gleis .*)\)$)"));
static QRegularExpression rx(QStringLiteral(R"((.*) \(((:?Gleis|Bahnsteig) .*)\)$)"));
const auto match = rx.match(r.loc.name());
if (match.hasMatch()) {
r.loc.setName(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