Skip to content

Commit

Permalink
Consider '%o' a formatting element since debug maps it to util.inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcelino committed Mar 2, 2015
1 parent 8228154 commit 542c33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug-logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function isString(str){
function hasFormattingElements(str){
if(!str) { return false; }
var res = false;
['%s', '%d', '%j'].forEach(function(elem){
['%s', '%d', '%j', '%o'].forEach(function(elem){
if(str.indexOf(elem) >= 0) {
res = true;
}
Expand Down

0 comments on commit 542c33b

Please sign in to comment.