Skip to content
GitLab
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
94baa2ec
Commit
94baa2ec
authored
Nov 21, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lib/backends/deutschebahnbackend.cpp
View file @
94baa2ec
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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