Skip to content

Commit

Permalink
fix: make admin & url validation the same
Browse files Browse the repository at this point in the history
- not sure why this was different
  • Loading branch information
ErisDS authored and acburdine committed Sep 9, 2018
1 parent 581c901 commit 29acafe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/commands/config/advanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ module.exports = {
adminUrl: {
description: 'URL for the admin client, if different than the normal URL',
configPath: 'admin.url',
validate: value => validator.isURL(value, {require_protocol: true}) ||
'Invalid URL. Your URL should include a protocol, E.g. http://my-ghost-blog.com',
validate: urlUtils.validate,
transform: urlUtils.ensureProtocol,
type: 'string',
group: 'Ghost Options:'
Expand Down

0 comments on commit 29acafe

Please sign in to comment.