make protocol optional for validation

This commit is contained in:
Alex Holliday
2025-01-06 10:13:24 -08:00
parent 8045d2a17c
commit abe2544a2a

View File

@@ -100,9 +100,8 @@ const monitorValidation = joi.object({
"^" +
// protocol identifier (optional)
// short syntax // still required
"(?:(?:(?:https?|ftp):)?\\/\\/)" +
"(?:(?:https?|ftp):\\/\\/)?" +
// user:pass BasicAuth (optional)
"(?:\\S+(?::\\S*)?@)?" +
"(?:" +
// IP address exclusion
// private & local networks