Skip to content

Commit

Permalink
feat: support non-param paths with trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
chelkyl committed Oct 22, 2024
1 parent 1a6c287 commit 49e8e19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Kiota.Builder/Extensions/StringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ private static string NormalizeSymbolsBeforeCleanup(string original)
result = result.Replace("+", "_plus_", StringComparison.OrdinalIgnoreCase);
}

if (result.Contains('\\', StringComparison.OrdinalIgnoreCase))
{
result = result.Replace(@"\", "Slash", StringComparison.OrdinalIgnoreCase);
}

return result;
}
/// <summary>
Expand Down

0 comments on commit 49e8e19

Please sign in to comment.