0
0

Update G1 Manifold regex

This commit is contained in:
Serghei Cebotari 2024-01-29 11:34:22 +03:00
parent 2ca3dd6a3f
commit eb8fe4484c

View File

@ -6,7 +6,7 @@ namespace RhSolutions.MLModifiers.DrinkingWaterHeatingFittings;
public class ManifoldG1 : DrinkingWaterHeatingFitting public class ManifoldG1 : DrinkingWaterHeatingFitting
{ {
private static readonly Regex _portsCount = private static readonly Regex _portsCount =
new(@"([\b\D]|^)?(?<Ports>2|3|4)([\b\D]|$)"); new(@"\b(?<Ports>\d{1})\b");
protected override string _title => "Распределительный коллектор G1"; protected override string _title => "Распределительный коллектор G1";
@ -24,4 +24,4 @@ public class ManifoldG1 : DrinkingWaterHeatingFitting
return false; return false;
} }
} }
} }