Skip to content

Commit ad5cc38

Browse files
authored
Escape a couple more special characters (#1807)
* Add more special characters for escaping * One more special character
1 parent 60e1182 commit ad5cc38

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎build/AzurePipelineTemplates/CsWinRT-Variables.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ variables:
55
- name: MinorVersion
66
value: 1
77
- name: PatchVersion
8-
value: 4
8+
value: 5
99
- name: WinRT.Runtime.AssemblyVersion
1010
value: '2.1.0.0'
1111
- name: Net5.SDK.Feed

‎src/Authoring/WinRT.SourceGenerator/Helper.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ public static string GetAbiMarshalerType(string type, string abiType, TypeKind k
10451045

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

10511051
public readonly struct MappedType

0 commit comments

Comments
 (0)