From 2f9964d1430cb5985c2577c00d060de65d0a3dc6 Mon Sep 17 00:00:00 2001 From: Praven Kuttappan <55455725+praveenkuttappan@users.noreply.github.com> Date: Tue, 28 Nov 2023 09:37:20 -0500 Subject: [PATCH] APIView - Update package name format for C (#7338) --- src/dotnet/APIView/APIViewWeb/Languages/CLanguageService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dotnet/APIView/APIViewWeb/Languages/CLanguageService.cs b/src/dotnet/APIView/APIViewWeb/Languages/CLanguageService.cs index afa8dc3bf35..dcc2417bb73 100644 --- a/src/dotnet/APIView/APIViewWeb/Languages/CLanguageService.cs +++ b/src/dotnet/APIView/APIViewWeb/Languages/CLanguageService.cs @@ -16,7 +16,7 @@ namespace APIViewWeb { public class CLanguageService : LanguageService { - private const string CurrentVersion = "4"; + private const string CurrentVersion = "5"; private static Regex _typeTokenizer = new Regex("\\w+|[^\\w]+", RegexOptions.Compiled | RegexOptions.IgnoreCase); private static HashSet _keywords = new HashSet() { @@ -88,7 +88,7 @@ public override async Task GetCodeFileAsync(string originalName, Strea var packageNameMatch = _packageNameParser.Match(originalName); if (packageNameMatch.Success) { - packageNamespace = packageNameMatch.Groups[1].Value.Replace("_", "::"); + packageNamespace = packageNameMatch.Groups[1].Value.Replace("_", "-"); } CodeFileTokensBuilder builder = new CodeFileTokensBuilder();