0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Fixed eslint-warnings in vhost middleware

- this middleware is a fork/copy of expressjs/vhost
- right now I don't want to rewrite the code to meet our eslint rules, so disabling them
This commit is contained in:
Hannah Wolfe 2022-05-02 14:47:37 +01:00
parent e4af12e5c0
commit 4938d33a65

View file

@ -1,3 +1,6 @@
// This a fork of expressjs/vhost with trust proxy support
/* eslint-disable */
/*!
* vhost
* Copyright(c) 2014 Jonathan Ong
@ -5,6 +8,7 @@
* MIT Licensed
*/
'use strict';
/**
@ -68,7 +72,7 @@ function vhost(hostname, handle) {
/**
* Get hostname of request.
*
* @param (object} req
* @param {object} req
* @return {string}
* @private
*/
@ -96,7 +100,7 @@ function hostnameof(req) {
/**
* Determine if object is RegExp.
*
* @param (object} val
* @param {object} val
* @return {boolean}
* @private
*/
@ -108,7 +112,7 @@ function isregexp(val) {
/**
* Generate RegExp for given hostname value.
*
* @param (string|RegExp} val
* @param {string|RegExp} val
* @private
*/
@ -133,8 +137,8 @@ function hostregexp(val) {
/**
* Get the vhost data of the request for RegExp
*
* @param (object} req
* @param (RegExp} regexp
* @param {object} req
* @param {RegExp} regexp
* @return {object}
* @private
*/