Skip to content
Prev Previous commit
Next Next commit
Oops
  • Loading branch information
los93sol committed Oct 29, 2024
commit 22489be62b3cd1c58849fe308949a27b153907ca
2 changes: 1 addition & 1 deletion src/Aspire.Hosting/Utils/VolumeNameGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static string Generate<T>(IResourceBuilder<T> builder, string suffix) whe
{
if (!HasOnlyValidChars(suffix))
{
throw new ArgumentException($"The suffix '{suffix}' contains invalid characters. Only [a-zA-Z0-9_.-] are allowed.", nameof(suffix));
throw new ArgumentException($"The suffix '{suffix}' contains invalid characters. It must match [a-zA-Z0-9][a-zA-Z0-9_.-]*.", nameof(suffix));
}

// Create volume name like "{Sanitize(appname).Lower()}-{sha256.Lower()}-postgres-data"
Expand Down