VBB: strip "Bus " & "Tram " from line names

This commit is contained in:
Jannis R 2018-06-20 23:24:59 +02:00
parent 49186ae2d1
commit f60bebd5ae
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

@ -42,7 +42,8 @@ const createParseLine = (profile, operators) => {
}
}
const details = parseLineName(l.name)
res.name = l.name.replace(/^(bus|tram)\s+/i, '')
const details = parseLineName(res.name)
res.symbol = details.symbol
res.nr = details.nr
res.metro = details.metro