From 006fce1cb49417a0d5cc5b8edfa492bc38e0568b Mon Sep 17 00:00:00 2001 From: "leon.hoppe" Date: Thu, 4 May 2023 11:48:49 +0200 Subject: [PATCH] fixed loop breaking issue --- BetterIServ.Backend/Controllers/UnitsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BetterIServ.Backend/Controllers/UnitsController.cs b/BetterIServ.Backend/Controllers/UnitsController.cs index f4c84a0..7697739 100644 --- a/BetterIServ.Backend/Controllers/UnitsController.cs +++ b/BetterIServ.Backend/Controllers/UnitsController.cs @@ -57,7 +57,7 @@ public class UnitsController : ControllerBase { if (!classes.StartsWith("Q")) { string grade = new string(classes.ToCharArray().Where(char.IsNumber).ToArray()); - if (string.IsNullOrEmpty(grade)) break; + if (string.IsNullOrEmpty(grade)) continue; var subClasses = classes.Replace(grade, "").ToCharArray(); var result = new string[subClasses.Length];