From ebe7c595246d31c464c27d44307b32a29a82d546 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 17 Feb 2021 18:33:18 +0100 Subject: [PATCH] =?UTF-8?q?lib/request:=20fix=20DEBUG=20env=20var=20switch?= =?UTF-8?q?=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request.js b/lib/request.js index 0db3ca4f..1395dd18 100644 --- a/lib/request.js +++ b/lib/request.js @@ -1,7 +1,7 @@ 'use strict' const DEV = process.env.NODE_ENV === 'dev' -const DEBUG = /\bhafas-client\b/.test(process.env.DEBUG || '') +const DEBUG = /(^|,)hafas-client(,|$)/.test(process.env.DEBUG || '') const ProxyAgent = require('https-proxy-agent') const {isIP} = require('net')