Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libraries
KPublicTransport
Commits
dbb9c01e
Commit
dbb9c01e
authored
Nov 05, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/backends/ivvassparser.cpp
View file @
dbb9c01e
...
...
@@ -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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment