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)
|
||||
// short syntax // still required
|
||||
"(?:(?:(?:https?|ftp):)?\\/\\/)" +
|
||||
"(?:(?:https?|ftp):\\/\\/)?" +
|
||||
// user:pass BasicAuth (optional)
|
||||
"(?:\\S+(?::\\S*)?@)?" +
|
||||
"(?:" +
|
||||
// IP address exclusion
|
||||
// private & local networks
|
||||
|
||||
Reference in new issue
Block a user