Update sleeves pattern
This commit is contained in:
parent
199540e530
commit
24dcec3039
@ -5,9 +5,9 @@ namespace RhSolutions.Services;
|
|||||||
public class SleevesCalculator : ISleevesCalculator
|
public class SleevesCalculator : ISleevesCalculator
|
||||||
{
|
{
|
||||||
private const string doublePattern =
|
private const string doublePattern =
|
||||||
@"((?i)равнопроходная|угольник\s+90|угольник\s+45|Т-образная|Комплект\s+трубок(?i))(.+?(?<Sleeve>\b16\b|\b20\b|\b25\b|\b32\b|\b40\b|\b50\b|\b63\b))+";
|
@"((?i)равнопроходная|угольник\s+90|угольник\s+45|Т-образная|Комплект\s+трубок(?i))(.+?\b(?<Sleeve>16|20|25|32|40|50|63)\b)+";
|
||||||
private const string singlePattern =
|
private const string singlePattern =
|
||||||
@"((?i)муфта|тройник|переходник|угольник|штуцер|Г-образная|заглушка(?i))(.+?(?<Sleeve>\b16\b|\b20\b|\b25\b|\b32\b|\b40\b|\b50\b|\b63\b))+";
|
@"((?i)муфта|тройник|переходник|угольник|штуцер|Г-образная|заглушка(?i))(.+?\b(?<Sleeve>16|20|25|32|40|50|63)\b)+";
|
||||||
|
|
||||||
public Dictionary<Product, double> CalculateSleeves(Dictionary<Product, double> products)
|
public Dictionary<Product, double> CalculateSleeves(Dictionary<Product, double> products)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user