last
This commit is contained in:
1 parent
1d6a5a4442
commit
ed03c17c22
1 file changed
+1
-1
@@ -120,7 +120,7 @@ const monitorValidation = joi.object({
|
|||||||
.custom((value, helpers) => {
|
.custom((value, helpers) => {
|
||||||
// Regex from https://gist.github.com/dperini/729294
|
// Regex from https://gist.github.com/dperini/729294
|
||||||
var urlRegex = new RegExp(
|
var urlRegex = new RegExp(
|
||||||
"^" +
|
"^" +
|
||||||
// protocol identifier (optional)
|
// protocol identifier (optional)
|
||||||
// short syntax // still required
|
// short syntax // still required
|
||||||
"(?:(?:https?|ftp):\\/\\/)?" +
|
"(?:(?:https?|ftp):\\/\\/)?" +
|
||||||
|
|||||||
Reference in new issue
Block a user