mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
VBB: strip "Bus " from line names
This commit is contained in:
parent
d96cbfb228
commit
046b8c4117
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,8 @@ const createParseLine = (profile, operators) => {
|
||||||
const parseLineWithMoreDetails = (l) => {
|
const parseLineWithMoreDetails = (l) => {
|
||||||
const res = parseLine(l)
|
const res = parseLine(l)
|
||||||
|
|
||||||
const details = parseLineName(l.name)
|
res.name = l.name.replace(/^bus\s+/i, '')
|
||||||
|
const details = parseLineName(res.name)
|
||||||
res.symbol = details.symbol
|
res.symbol = details.symbol
|
||||||
res.nr = details.nr
|
res.nr = details.nr
|
||||||
res.metro = details.metro
|
res.metro = details.metro
|
||||||
|
|
Loading…
Add table
Reference in a new issue