We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03ecbde commit c8f3554Copy full SHA for c8f3554
lib/utils/url.js
@@ -3,13 +3,13 @@
3
const {isURL} = require('validator');
4
const endsWithGhost = /\/ghost\/?$/i;
5
6
-const validate = function validateURL(url, isAdmin) {
+const validate = function validateURL(url) {
7
const isValidURL = isURL(url, {require_protocol: true});
8
if (!isValidURL) {
9
return 'Invalid domain. Your domain should include a protocol and a TLD, E.g. http://my-ghost-blog.com';
10
}
11
12
- return (!isAdmin && !endsWithGhost.test(url)) || 'Ghost doesn\'t support running in a path that ends with `ghost`';
+ return (!endsWithGhost.test(url)) || 'Ghost doesn\'t support running in a path that ends with `ghost`';
13
};
14
15
const isCustomDomain = function isCustomDomain(input) {
0 commit comments