fix(blueprints): allow underscores in health check hostnames

This commit is contained in:
Tyagiquamar
2026-10-12 18:18:14 +05:30
parent 58a3701fa8
commit b4812066c9
+1 -1
View File
@@ -47,7 +47,7 @@ const healthCheckHostnameSchema = z
return true;
}
const hostnameRegex =
/^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)*[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/;
/^(?:[a-zA-Z0-9_](?:[a-zA-Z0-9_-]{0,61}[a-zA-Z0-9_])?\.)*[a-zA-Z0-9_](?:[a-zA-Z0-9_-]{0,61}[a-zA-Z0-9_])?$/;
return hostnameRegex.test(val);
},
{