Skip to content

Commit

Permalink
APIView - Update package name format for C (#7338)
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkuttappan authored Nov 28, 2023
1 parent 8b4943a commit 2f9964d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dotnet/APIView/APIViewWeb/Languages/CLanguageService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> _keywords = new HashSet<string>()
{
Expand Down Expand Up @@ -88,7 +88,7 @@ public override async Task<CodeFile> 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();
Expand Down

0 comments on commit 2f9964d

Please sign in to comment.