From 046b8c4117894bf23544a40f244f884caaf72744 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 29 Mar 2018 23:17:50 +0200 Subject: [PATCH] VBB: strip "Bus " 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 8ce5fde2..bcff49a9 100644 --- a/p/vbb/index.js +++ b/p/vbb/index.js @@ -29,7 +29,8 @@ const createParseLine = (profile, operators) => { const parseLineWithMoreDetails = (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.nr = details.nr res.metro = details.metro