Merge pull request #4602 from abpframework/maliming/cli-PascalToKebabCase

Fix Turkish letter issue.
pull/4612/head
Halil İbrahim Kalkan 5 years ago committed by GitHub
commit 0e6f88b9c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save