Skip to content

Commit

Permalink
allow empty delimiter in extend
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolfy committed Jul 1, 2018
1 parent 2698a6c commit 35c03f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 35c03f2

Please sign in to comment.