From 2479d29315916f7709cc533ded3ca999dd20f7db Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Tue, 30 Aug 2022 19:14:41 +0800 Subject: [PATCH] Remove unexpected "\r" char postfixes --- .../EasyAbp.EShop.Products.Web/ProductsWebAutoMapperProfile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsWebAutoMapperProfile.cs b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsWebAutoMapperProfile.cs index aa3ab14e..8d626543 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsWebAutoMapperProfile.cs +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsWebAutoMapperProfile.cs @@ -46,7 +46,7 @@ namespace EasyAbp.EShop.Products.Web ProductAttributeOptions = new List( x.ProductAttributeOptionNames.SplitToLines(StringSplitOptions.RemoveEmptyEntries)[i] .Split(",", StringSplitOptions.RemoveEmptyEntries).Select(o => - new CreateUpdateProductAttributeOptionDto {DisplayName = o})) + new CreateUpdateProductAttributeOptionDto {DisplayName = o.RemovePostFix("\r")})) }))); CreateMap(); CreateMap()