You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Class names in C# allow extended letters like ÅÄÖ. When using pascal casing and a new word begins with an extended letter like TestÄa the generated markup is wrong.
Steps to reproduce:
Create a ViewComponent with the class name TestÄh.
Thanks for reporting this issue. However, fixing this would break users that rely on the current behavior (and they wouldn't notice the break until runtime). Given that and the narrow impact of the bug, we likely won't fix it.
A non-breaking alternative would be to generate both tag helpers (<vc:test-äa> and <vc:testäa>). See this conversion: #10866 (comment). I'm reopening so this alternative gets triaged.
Class names in C# allow extended letters like ÅÄÖ. When using pascal casing and a new word begins with an extended letter like
TestÄa
the generated markup is wrong.Steps to reproduce:
ViewComponent
with the class nameTestÄh
.<vc:test-äa>
<vc:testäa>
The actual issue is with the regex here:
razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/HtmlConventions.cs
Line 23 in dde7fe8
Solution:
Change the regex so it supports extended letters just like class names do.
The text was updated successfully, but these errors were encountered: