Do not use array.includes to support some older versions of node
This commit is contained in:
parent
005941731b
commit
37b0ac9aec
3 changed files with 3 additions and 3 deletions
|
@ -111,7 +111,7 @@ module.exports = callback => {
|
|||
let hosts;
|
||||
if (typeof config.verp.host === 'string' && config.verp.host) {
|
||||
hosts = config.verp.host.trim().split(',').map(host => host.trim()).filter(host => host.trim());
|
||||
if (hosts.includes('*') || hosts.includes('all')) {
|
||||
if (hosts.indexOf('*') >= 0 || hosts.indexOf('all') >= 0) {
|
||||
hosts = [false];
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue