Skip to content

Commit

Permalink
Escape a couple more special characters (#1807)
Browse files Browse the repository at this point in the history
* Add more special characters for escaping

* One more special character
  • Loading branch information
manodasanW authored Oct 3, 2024
1 parent 60e1182 commit ad5cc38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/AzurePipelineTemplates/CsWinRT-Variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ variables:
- name: MinorVersion
value: 1
- name: PatchVersion
value: 4
value: 5
- name: WinRT.Runtime.AssemblyVersion
value: '2.1.0.0'
- name: Net5.SDK.Feed
Expand Down
2 changes: 1 addition & 1 deletion src/Authoring/WinRT.SourceGenerator/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ public static string GetAbiMarshalerType(string type, string abiType, TypeKind k

public static string EscapeTypeNameForIdentifier(string typeName)
{
return Regex.Replace(typeName, """[(\ |:<>,\.\-@)]""", "_");
return Regex.Replace(typeName, """[(\ |:<>,\.\-@;+'^!`)]""", "_");
}

public readonly struct MappedType
Expand Down

0 comments on commit ad5cc38

Please sign in to comment.