0
Fork 0
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:
Sebastian Gierlinger 2014-08-08 15:24:25 +02:00
commit 9e65b47007

View file

@ -24,7 +24,7 @@ validator.extend('notContains', function (str, badString) {
});
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