From 4fd7108ec6efff6c2cf4f8b30775b1944fd2289d Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sat, 31 Mar 2018 14:03:23 +0200 Subject: [PATCH] VBB: strip "Tram " from line names --- p/vbb/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p/vbb/index.js b/p/vbb/index.js index bcff49a9..8a3539cd 100644 --- a/p/vbb/index.js +++ b/p/vbb/index.js @@ -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