mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Merge pull request #3695 from ErisDS/issue-3657
Don't require protocol for website
This commit is contained in:
commit
9e65b47007
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ validator.extend('notContains', function (str, badString) {
|
||||||
});
|
});
|
||||||
|
|
||||||
validator.extend('isEmptyOrURL', function (str) {
|
validator.extend('isEmptyOrURL', function (str) {
|
||||||
return (_.isEmpty(str) || validator.isURL(str, { protocols: ['http', 'https'], require_protocol: true }));
|
return (_.isEmpty(str) || validator.isURL(str, { require_protocol: false }));
|
||||||
});
|
});
|
||||||
|
|
||||||
// Validation validation against schema attributes
|
// Validation validation against schema attributes
|
||||||
|
|
Loading…
Add table
Reference in a new issue