VBB: strip "Tram " from line names

This commit is contained in:
Jannis R 2018-03-31 14:03:23 +02:00
parent 046b8c4117
commit 4fd7108ec6
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5

View file

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