Skip to content

Commit e033ff8

Browse files
committed
Fix comment and add one more test
1 parent 42a4e93 commit e033ff8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/HtmlConventionsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public static TheoryData<string, string> HtmlConversionData
2323
{ "CAPSOnOUTSIDE", "caps-on-outside" },
2424
{ "ALLCAPS", "allcaps" },
2525
{ "One1Two2Three3", "one1-two2-three3" },
26-
{ "ONE1TWO2THREE3", "one1two2three3" },
2726
{ "First_Second_ThirdHi", "first_second_third-hi" },
27+
{ "ONE1Two", "one1-two" },
2828
{ "One123Two234Three345", "one123-two234-three345" },
2929
{ "ONE123TWO234THREE345", "one123two234three345" },
3030
{ "1TWO2THREE3", "1two2three3" },

src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/HtmlConventions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private static bool ShouldInsertHyphenBeforeUppercase(ReadOnlySpan<char> input,
109109
if ((char.IsUpper(prev) || char.IsDigit(prev)) &&
110110
(i + 1 < input.Length) && char.IsLower(input[i + 1]))
111111
{
112-
// Uppercase or digit followed by lowercase (e.g. CAPSOn → caps-on)
112+
// Uppercase or digit followed by uppercase, followed by lowercase (e.g. CAPSOn → caps-on or ONE1Two → ONE1-Two)
113113
return true; ;
114114
}
115115

0 commit comments

Comments
 (0)