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
ebe069c8
Commit
ebe069c8
authored
Mar 01, 2022
by
Volker Krause
Browse files
Include NightJet trains in supported types of the ÖBB vehicle layout API
parent
52b1f4c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/backends/oebbbackend.cpp
View file @
ebe069c8
...
...
@@ -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
);
...
...
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