From 27b5cb5d11b76998817313cef103e3958f5428b3 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Mon, 16 Jan 2023 02:12:54 +0100 Subject: [PATCH] Fix noctilien line research --- api/lines.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/lines.go b/api/lines.go index eecca5a..3affcd1 100644 --- a/api/lines.go +++ b/api/lines.go @@ -118,7 +118,7 @@ func convertCode(t, code string) string { func searchLine(t, code string) string { for _, line := range IDFMLines { - if line.Fields.ShortName == code && (line.Fields.TransportMode == t || line.Fields.NetworkName == t) { + if line.Fields.ShortName == code && (line.Fields.TransportMode == t || strings.ToLower(line.Fields.NetworkName) == t) { return line.Fields.IdLine } }