diff options
Diffstat (limited to 'RhSolutions.QueryModifiers/DrinkingWaterHeatingFittings/ThreadElbowWallInternal.cs')
-rw-r--r-- | RhSolutions.QueryModifiers/DrinkingWaterHeatingFittings/ThreadElbowWallInternal.cs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/RhSolutions.QueryModifiers/DrinkingWaterHeatingFittings/ThreadElbowWallInternal.cs b/RhSolutions.QueryModifiers/DrinkingWaterHeatingFittings/ThreadElbowWallInternal.cs deleted file mode 100644 index 6450796..0000000 --- a/RhSolutions.QueryModifiers/DrinkingWaterHeatingFittings/ThreadElbowWallInternal.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Text.RegularExpressions; - -namespace RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings; - -public class ThreadElbowWallInternal : DrinkingWaterHeatingFitting -{ - protected override string _title => "Угольник настенный внутр. резьба"; - private Regex _type = new(@"([\b\Wу])(?<Type>длин)([\b\w\.\s])"); - - public override bool TryQueryModify(string input, out string output) - { - output = string.Empty; - var diameterMatch = _diameter.Match(input); - if (!diameterMatch.Success) - { - return false; - } - var threadMatch = _thread.Match(input); - if (!threadMatch.Success) - { - return false; - } - var typeMatch = _type.Match(input); - string diameter = diameterMatch.Groups["Diameter"].Value; - string thread = threadMatch.Groups["Thread"].Value; - output = $"{_title} {(typeMatch.Success ? "длинный " : string.Empty)}{diameter}-Rp {thread}"; - return true; - } -}
\ No newline at end of file |