Skip to content

Commit 2383d5b

Browse files
authored
Do not match pipe as port separator (#10884)
1 parent e21bb19 commit 2383d5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Aspire.Dashboard/Model/ConnectionStringParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ internal static partial class ConnectionStringParser
5353
/// Matches host:port or host,port patterns with optional IPv6 bracket notation.
5454
/// Examples: "localhost:5432", "127.0.0.1,1433", "[::1]:6379"
5555
/// </summary>
56-
[GeneratedRegex(@"(\[[^\]]+\]|[^,:;\s]+)[:|,](\d{1,5})", RegexOptions.Compiled)]
56+
[GeneratedRegex(@"(\[[^\]]+\]|[^,:;\s]+)[:,](\d{1,5})", RegexOptions.Compiled)]
5757
private static partial Regex HostPortRegex();
5858

5959
/// <summary>

0 commit comments

Comments
 (0)