Fix multiple whitespaces in sku name sleeves calculator bug
This commit is contained in:
parent
d6de208df4
commit
159ac0ec57
@ -5,7 +5,7 @@ namespace RhSolutions.Services;
|
||||
public class SleevesCalculator : ISleevesCalculator
|
||||
{
|
||||
private const string doublePattern =
|
||||
@"((?i)равнопроходная|угольник 90|угольник 45|Т-образная|Комплект трубок(?i))(.+?(?<Sleeve>\b16\b|\b20\b|\b25\b|\b32\b|\b40\b|\b50\b|\b63\b))+";
|
||||
@"((?i)равнопроходная|угольник\s+90|угольник\s+45|Т-образная|Комплект\s+трубок(?i))(.+?(?<Sleeve>\b16\b|\b20\b|\b25\b|\b32\b|\b40\b|\b50\b|\b63\b))+";
|
||||
private const string singlePattern =
|
||||
@"((?i)муфта|тройник|переходник|угольник|штуцер|Г-образная|заглушка(?i))(.+?(?<Sleeve>\b16\b|\b20\b|\b25\b|\b32\b|\b40\b|\b50\b|\b63\b))+";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user