From f60bebd5ae9968d8d92a7a061c9789f3e8d8657a Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 20 Jun 2018 23:24:59 +0200 Subject: [PATCH] VBB: strip "Bus " & "Tram " from line names --- p/vbb/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/p/vbb/index.js b/p/vbb/index.js index f9be15c1..68b6496b 100644 --- a/p/vbb/index.js +++ b/p/vbb/index.js @@ -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