Browse Source

Fix Turkish letter issue.

pull/4602/head
maliming 6 years ago
parent
commit
637379e7fc
  1. 19
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/GenerateProxyCommand.cs

19
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/GenerateProxyCommand.cs

@ -11,8 +11,10 @@ using Volo.Abp.Cli.ProjectBuilding;
using Volo.Abp.Cli.ProjectBuilding.Building; using Volo.Abp.Cli.ProjectBuilding.Building;
using Volo.Abp.DependencyInjection; using Volo.Abp.DependencyInjection;
using System.Collections.Generic; using System.Collections.Generic;
using System.Globalization;
using System.Linq; using System.Linq;
using System.Net; using System.Net;
using Volo.Abp.Localization;
using Volo.Abp.Reflection; using Volo.Abp.Reflection;
namespace Volo.Abp.Cli.Commands namespace Volo.Abp.Cli.Commands
@ -801,13 +803,16 @@ namespace Volo.Abp.Cli.Commands
return value; return value;
} }
return Regex.Replace( using (CultureHelper.Use(CultureInfo.InvariantCulture))
value, {
"(?<!^)([A-Z][a-z]|(?<=[a-z])[A-Z])", return Regex.Replace(
"-$1", value,
RegexOptions.Compiled) "(?<!^)([A-Z][a-z]|(?<=[a-z])[A-Z])",
.Trim() "-$1",
.ToLower(); RegexOptions.Compiled)
.Trim()
.ToLower();
}
} }
} }

Loading…
Cancel
Save