Merge pull request #1520 from bluewave-labs/hotfix/fe/validation

hotfix: make protocol optional for validation
This commit is contained in:
Alexander Holliday
2025-01-06 10:14:16 -08:00
committed by GitHub

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