Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
"steps": [
"lowerCaseInvariant",
"replaceDnsInvalidChars",
"replaceRepeatedHyphens",
"trimLeadingHyphens",
"trimTrailingHyphens"
]
Expand All @@ -217,6 +218,11 @@
"pattern": "[^a-z0-9-]",
"replacement": "-"
},
"replaceRepeatedHyphens": {
"identifier": "replace",
"pattern": "-{2,}",
"replacement": "-"
},
"trimLeadingHyphens": {
"identifier": "replace",
"pattern": "^-+",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"steps": [
"lowerCaseInvariant",
"replaceDnsInvalidChars",
"replaceRepeatedHyphens",
"trimLeadingHyphens",
"trimTrailingHyphens"
]
Expand All @@ -63,6 +64,11 @@
"pattern": "[^a-z0-9-]",
"replacement": "-"
},
"replaceRepeatedHyphens": {
"identifier": "replace",
"pattern": "-{2,}",
"replacement": "-"
},
"trimLeadingHyphens": {
"identifier": "replace",
"pattern": "^-+",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ private async Task TestProjectCoreAsync(Project project, BrowserKind browserKind
[InlineData("my.namespace.blazor", "my-namespace-blazor")]
[InlineData(".StartWithDot", "startwithdot")]
[InlineData("EndWithDot.", "endwithdot")]
[InlineData("My..Test__Project", "my--test--project")]
[InlineData("My..Test__Project", "my-test-project")]
[InlineData("Project123.Test456", "project123-test456")]
[InlineData("xn--My.Test.Project", "xn-my-test-project")]
[SkipOnHelix("Cert failure, https://github.com/dotnet/aspnetcore/issues/28090", Queues = "All.OSX;" + HelixConstants.Windows10Arm64 + HelixConstants.DebianArm64)]
public async Task BlazorWebTemplateLocalhostTld_GeneratesDnsCompliantHostnames(string projectName, string expectedHostname)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ public async Task EmptyWebTemplateNoHttpsFSharp()
[InlineData("my.namespace.web", "my-namespace-web")]
[InlineData(".StartWithDot", "startwithdot")]
[InlineData("EndWithDot.", "endwithdot")]
[InlineData("My..Test__Project", "my--test--project")]
[InlineData("My..Test__Project", "my-test-project")]
[InlineData("Project123.Test456", "project123-test456")]
[InlineData("xn--My.Test.Project", "xn-my-test-project")]
[SkipOnHelix("Cert failure, https://github.com/dotnet/aspnetcore/issues/28090", Queues = "All.OSX;" + HelixConstants.Windows10Arm64 + HelixConstants.DebianArm64)]
public async Task EmptyWebTemplateLocalhostTld_GeneratesDnsCompliantHostnames(string projectName, string expectedHostname)
{
Expand Down
Loading