From 65498dd18f50d85ac7553f3eca2dc8e9dbaacdf2 Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sat, 5 Oct 2024 16:40:16 +0200 Subject: [PATCH] App: Fix BranchLocation shortening --- Elwig/App.xaml.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Elwig/App.xaml.cs b/Elwig/App.xaml.cs index 3b1041e..1fcbc54 100644 --- a/Elwig/App.xaml.cs +++ b/Elwig/App.xaml.cs @@ -197,7 +197,13 @@ namespace Elwig { ZwstId = entry.Item1; BranchName = entry.Item2; BranchPlz = entry.Item3; - BranchLocation = entry.Item4?.Split(" im ")[0].Split(" an ")[0].Split(" bei ")[0]; // FIXME + BranchLocation = entry.Item4? + .Split(" in ")[0] + .Split(" im ")[0] + .Split(" an ")[0] + .Split(" am ")[0] + .Split(" bei ")[0] + .Split(" beim ")[0]; BranchAddress = entry.Item5; BranchPhoneNr = entry.Item6; BranchFaxNr = entry.Item7;