diff --git a/src/handlers/clientErrorHandler.js b/src/handlers/clientErrorHandler.js index 713fa8f..7280afb 100644 --- a/src/handlers/clientErrorHandler.js +++ b/src/handlers/clientErrorHandler.js @@ -288,16 +288,15 @@ function clientErrorHandler(err, socket) { ) .replace( /{server}/g, - "" + - ( - config.generateServerString() + - (!config.exposeModsInErrorPages || extName == undefined - ? "" - : " " + extName) - ) - .replace(/&/g, "&") - .replace(//g, ">"), + ( + config.generateServerString() + + (!config.exposeModsInErrorPages || extName == undefined + ? "" + : " " + extName) + ) + .replace(/&/g, "&") + .replace(//g, ">"), ) .replace( /{contact}/g, @@ -341,16 +340,15 @@ function clientErrorHandler(err, socket) { ) .replace( /{server}/g, - "" + - ( - config.generateServerString() + - (!config.exposeModsInErrorPages || extName == undefined - ? "" - : " " + extName) - ) - .replace(/&/g, "&") - .replace(//g, ">"), + ( + config.generateServerString() + + (!config.exposeModsInErrorPages || extName == undefined + ? "" + : " " + extName) + ) + .replace(/&/g, "&") + .replace(//g, ">"), ) .replace( /{contact}/g, @@ -409,10 +407,11 @@ function clientErrorHandler(err, socket) { ) .replace( /{server}/g, - (config.generateServerString() + - (config.exposeModsInErrorPages || extName == undefined) - ? "" - : " " + extName + ( + config.generateServerString() + + (!config.exposeModsInErrorPages || extName == undefined + ? "" + : " " + extName) ) .replace(/&/g, "&") .replace(/