diff --git a/src/Aspire.Dashboard/Model/ConnectionStringParser.cs b/src/Aspire.Dashboard/Model/ConnectionStringParser.cs index 67c52d6c75b..c59db8cdaf1 100644 --- a/src/Aspire.Dashboard/Model/ConnectionStringParser.cs +++ b/src/Aspire.Dashboard/Model/ConnectionStringParser.cs @@ -53,7 +53,7 @@ internal static partial class ConnectionStringParser /// Matches host:port or host,port patterns with optional IPv6 bracket notation. /// Examples: "localhost:5432", "127.0.0.1,1433", "[::1]:6379" /// - [GeneratedRegex(@"(\[[^\]]+\]|[^,:;\s]+)[:|,](\d{1,5})", RegexOptions.Compiled)] + [GeneratedRegex(@"(\[[^\]]+\]|[^,:;\s]+)[:,](\d{1,5})", RegexOptions.Compiled)] private static partial Regex HostPortRegex(); ///