From 35c03f2698d826537d3d597e6a18685c5d8041dd Mon Sep 17 00:00:00 2001 From: kwolfy Date: Sun, 1 Jul 2018 22:47:46 +0300 Subject: [PATCH] allow empty delimiter in extend --- src/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.js b/src/common.js index 51b3d52f..65713e4d 100644 --- a/src/common.js +++ b/src/common.js @@ -148,7 +148,7 @@ module.exports = function setup(env) { } function extend (namespace, delimiter) { - return createDebug(this.namespace + (delimiter || ':') + namespace); + return createDebug(this.namespace + (typeof delimiter !== 'undefined' ? delimiter : ':') + namespace); } /**