mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-13 08:09:04 +02:00
Merge pull request #3891 from Tyagiquamar/fix/3852-healthcheck-hostname
fix(blueprints): allow underscores in health check hostnames
This commit is contained in:
@@ -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);
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user