fix: site config host slice
This commit is contained in:
parent
ca87f9088a
commit
c2a0773633
@ -32,7 +32,7 @@ module.exports = {
|
||||
if (args.host) {
|
||||
let siteHost = _.trim(args.host)
|
||||
if (siteHost.endsWith('/')) {
|
||||
siteHost = siteHost.splice(0, -1)
|
||||
siteHost = siteHost.slice(0, -1)
|
||||
}
|
||||
WIKI.config.host = siteHost
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user