make protocol optional for validation
This commit is contained in:
1 parent
8045d2a17c
commit
abe2544a2a
1 file changed
+1
-2
@@ -100,9 +100,8 @@ const monitorValidation = joi.object({
|
|||||||
"^" +
|
"^" +
|
||||||
// protocol identifier (optional)
|
// protocol identifier (optional)
|
||||||
// short syntax // still required
|
// short syntax // still required
|
||||||
"(?:(?:(?:https?|ftp):)?\\/\\/)" +
|
"(?:(?:https?|ftp):\\/\\/)?" +
|
||||||
// user:pass BasicAuth (optional)
|
// user:pass BasicAuth (optional)
|
||||||
"(?:\\S+(?::\\S*)?@)?" +
|
|
||||||
"(?:" +
|
"(?:" +
|
||||||
// IP address exclusion
|
// IP address exclusion
|
||||||
// private & local networks
|
// private & local networks
|
||||||
|
|||||||
Reference in new issue
Block a user